Stepper API

API documentation for Stepper component

Stepper#

Props#

Defines valid properties in Stepper component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: StepperInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: StepperInstance) => 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<StepperPassThrough>
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: StepperInstance) => ReactNode)
null
The children to render.
defaultValuestring | number
null
Default value of the active step.
valuestring | number
null
Value of the active step.
linearboolean
false
Whether the steps are clickable or not.
onValueChange(event: useStepperChangeEvent) => void
null
Callback fired when the stepper's value changes.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

State#

Defines valid state in Stepper component.

nametypedefaultdescription
valuestring | number
null
Value of the active step.

Exposes#

Defines the methods and properties exposed by Stepper component.

nametypedefaultdescription
stateuseStepperState
null
The state of the useStepper.
setActiveStep(value: string | number) => void
null
The method to update the value of the active step.
isStepActive(value: string | number) => boolean
null
The method to check if the step is active.
isStepDisabled() => boolean
null
The method to check if the step is disabled.

Interfaces#

Defines passthrough(pt) options of Stepper component.

nametypedefaultdescription
rootStepperPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.
listStepperPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the list's DOM element.
stepStepperPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the step's DOM element.
headerStepperPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the header's DOM element.
numberStepperPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the number's DOM element.
titleStepperPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the title's DOM element.
separatorStepperPassThroughType<HTMLAttributes<HTMLSpanElement>>
null
Used to pass attributes to the separator's DOM element.
panelsStepperPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the panels's DOM element.
panelStepperPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the panel's DOM element.
itemStepperPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the item's DOM element.
contentStepperPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the content's DOM element.

Types#

Instance of Stepper component.

values
ComponentInstance<StepperProps, StepperState, StepperExposes>

StepperList#

Props#

Defines valid properties in StepperList component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: StepperListInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: StepperListInstance) => 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<StepperListPassThrough>
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: StepperListInstance) => 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 StepperList component.

nametypedefaultdescription
stepperStepperInstance
null
The Stepper component instance.

Interfaces#

Defines passthrough(pt) options of StepperList component.

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

Types#

Instance of StepperList component.

values
ComponentInstance<StepperListProps, StepperListState, StepperListExposes>

StepperStep#

Props#

Defines valid properties in StepperStep component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: StepperStepInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: StepperStepInstance) => 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<StepperStepPassThrough>
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: StepperStepInstance) => ReactNode)
null
The children to render.
valuestring | number
null
Value of the step.
disabledboolean
false
Whether the step is disabled.
[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 StepperStep component.

nametypedefaultdescription
stepperStepperInstance
null
The Stepper component instance.
stepperitemStepperItemInstance
null
The StepperItem component instance.
activeValuestring | number
null
Current active value of the stepper.
activeboolean
null
Whether the step is active or not.
disabledboolean
null
Whether the step is disabled or not.

Interfaces#

Defines passthrough(pt) options of StepperStep component.

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

Types#

Instance of StepperStep component.

values
ComponentInstance<StepperStepProps, StepperStepState, StepperStepExposes>

StepperNumber#

Props#

Defines valid properties in StepperNumber component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: StepperNumberInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: StepperNumberInstance) => 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<StepperNumberPassThrough>
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: StepperNumberInstance) => 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 StepperNumber component.

nametypedefaultdescription
stepperStepperInstance
null
The Stepper component instance.

Interfaces#

Defines passthrough(pt) options of StepperNumber component.

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

Types#

Instance of StepperNumber component.

values
ComponentInstance<StepperNumberProps, StepperNumberState, StepperNumberExposes>

StepperTitle#

Props#

Defines valid properties in StepperTitle component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: StepperTitleInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: StepperTitleInstance) => 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<StepperTitlePassThrough>
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: StepperTitleInstance) => 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 StepperTitle component.

nametypedefaultdescription
stepperStepperInstance
null
The Stepper component instance.

Interfaces#

Defines passthrough(pt) options of StepperTitle component.

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

Types#

Instance of StepperTitle component.

values
ComponentInstance<StepperTitleProps, StepperTitleState, StepperTitleExposes>

StepperSeparator#

Props#

Defines valid properties in StepperSeparator component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: StepperSeparatorInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: StepperSeparatorInstance) => 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<StepperSeparatorPassThrough>
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: StepperSeparatorInstance) => 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 StepperSeparator component.

nametypedefaultdescription
stepperStepperInstance
null
The Stepper component instance.

Interfaces#

Defines passthrough(pt) options of StepperSeparator component.

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

StepperPanels#

Props#

Defines valid properties in StepperPanels component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: StepperPanelsInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: StepperPanelsInstance) => 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<StepperPanelsPassThrough>
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: StepperPanelsInstance) => 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 StepperPanels component.

nametypedefaultdescription
stepperStepperInstance
null
The Stepper component instance.

Interfaces#

Defines passthrough(pt) options of StepperPanels component.

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

StepperPanel#

Props#

Defines valid properties in StepperPanel component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: StepperPanelInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: StepperPanelInstance) => 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<StepperPanelPassThrough>
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: StepperPanelInstance) => ReactNode)
null
The children to render.
valuestring | number
null
Value of the step.
[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 StepperPanel component.

nametypedefaultdescription
stepperStepperInstance
null
The Stepper component instance.
stepperitemStepperItemInstance
null
The StepperItem component instance.
activeValuestring | number
null
Current active value of the stepper.
activeboolean
null
Whether the step is active or not.

Interfaces#

Defines passthrough(pt) options of StepperPanel component.

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

StepperItem#

Props#

Defines valid properties in StepperItem component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: StepperItemInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: StepperItemInstance) => 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<StepperItemPassThrough>
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: StepperItemInstance) => ReactNode)
null
The children to render.
valuestring | number
null
Value of the step.
[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 StepperItem component.

nametypedefaultdescription
stepperStepperInstance
null
The Stepper component instance.
activeboolean
null
Whether the step is active or not.

Interfaces#

Defines passthrough(pt) options of StepperItem component.

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

StepperContent#

Props#

Defines valid properties in StepperContent component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: StepperContentInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: StepperContentInstance) => 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<StepperContentPassThrough>
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: StepperContentInstance) => 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 StepperContent component.

nametypedefaultdescription
stepperStepperInstance
null
The Stepper component instance.

Interfaces#

Defines passthrough(pt) options of StepperContent component.

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

useStepper#

Props#

Defines valid properties in useStepper.

nametypedefaultdescription
defaultValuestring | number
null
Default value of the active step.
valuestring | number
null
Value of the active step.
linearboolean
false
Whether the steps are clickable or not.
onValueChange(event: useStepperChangeEvent) => void
null
Callback fired when the stepper's value changes.

State#

Defines valid state in useStepper.

nametypedefaultdescription
valuestring | number
null
Value of the active step.

Exposes#

Defines the methods and properties exposed by useStepper.

nametypedefaultdescription
stateuseStepperState
null
The state of the useStepper.
setActiveStep(value: string | number) => void
null
The method to update the value of the active step.
isStepActive(value: string | number) => boolean
null
The method to check if the step is active.
isStepDisabled() => boolean
null
The method to check if the step is disabled.

Events#

Event fired when the stepper's value changes.

nametypedescription
valuestring | numberThe value of the stepper.

Types#

Instance of useStepper headless.

values
HeadlessInstance<useStepperProps, useStepperState, useStepperExposes>