Fieldset API

API documentation for Fieldset component

Fieldset#

Props#

Defines valid properties in Fieldset component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: FieldsetInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: FieldsetInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<FieldsetPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: FieldsetInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Interfaces#

Defines passthrough(pt) options of Fieldset component.

nametypedefaultdescription
rootFieldsetPassThroughType<HTMLAttributes<HTMLFieldSetElement>>
null
Used to pass attributes to the root's DOM element.
legendFieldsetPassThroughType<HTMLAttributes<HTMLLegendElement>>
null
Used to pass attributes to the legend's DOM element.
contentFieldsetPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the content's DOM element.

Types#

Instance of Fieldset component.

values
ComponentInstance<FieldsetProps, FieldsetState, FieldsetExposes>

FieldsetLegend#

Props#

Defines valid properties in FieldsetLegend component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: FieldsetLegendInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: FieldsetLegendInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<FieldsetLegendPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: FieldsetLegendInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by FieldsetLegend component.

nametypedefaultdescription
fieldsetFieldsetInstance
null
The Fieldset component instance.

Interfaces#

Defines passthrough(pt) options of FieldsetLegend component.

nametypedefaultdescription
rootFieldsetLegendPassThroughType<HTMLAttributes<HTMLLegendElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of FieldsetLegend component.

values
ComponentInstance<FieldsetLegendProps, FieldsetLegendState, FieldsetLegendExposes>

FieldsetContent#

Props#

Defines valid properties in FieldsetContent component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: FieldsetContentInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: FieldsetContentInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<FieldsetContentPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: FieldsetContentInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by FieldsetContent component.

nametypedefaultdescription
fieldsetFieldsetInstance
null
The Switch component instance.

Interfaces#

Defines passthrough(pt) options of FieldsetContent component.

nametypedefaultdescription
rootFieldsetContentPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of FieldsetContent component.

values
ComponentInstance<FieldsetContentProps, FieldsetContentState, FieldsetContentExposes>

useFieldset#

Types#

Instance of useFieldset headless.

values
HeadlessInstance<useFieldsetProps, useFieldsetState, useFieldsetExposes>