Skip to Content
ComponentsSteps

Steps

A step indicator for multi-step processes. Built on Ark UI .

Fill in your profile information.

Import

import { Steps } from '@grannyshot/ui'

Usage

<Steps.Root count={3} defaultStep={0}> <Steps.List> <Steps.Item index={0} title="Account" /> <Steps.Item index={1} title="Profile" /> <Steps.Item index={2} title="Complete" /> </Steps.List> <Steps.Content index={0}>Step 1 content.</Steps.Content> <Steps.Content index={1}>Step 2 content.</Steps.Content> <Steps.Content index={2}>Step 3 content.</Steps.Content> <Steps.CompletedContent>All done!</Steps.CompletedContent> </Steps.Root>

API Reference

Steps.Root

PropTypeDefaultDescription
countnumberTotal number of steps
defaultStepnumber0Default active step
stepnumberControlled active step

Steps.Item

PropTypeDefaultDescription
indexnumberStep index (required)
titlestringStep label
Last updated on