Mixins / foldkit-mixins-ui
StepsSlots
const · packages/mixins-ui/src/steps.ts:25
const StepsSlots: Slots.Contract<{ readonly root: Slot.UnnamedSlot<Capability.Capability<"Container", readonly [Capability.Capability<"Interactive", readonly [Capability.Capability<"Base", readonly []>]>]>, readonly Slot.EventName[], readonly [Attr.AttrToken<"aria-label">], readonly Slot.RequirementName[], boolean>; readonly item: Slot.UnnamedSlot<Capability.Capability<"Container", readonly [Capability.Capability<"Interactive", readonly [Capability.Capability<"Base", readonly []>]>]>, readonly Slot.EventName[], readonly Slot.AttributeName[], readonly Slot.RequirementName[], boolean>; readonly step: Slot.UnnamedSlot<Capability.Capability<"Container", readonly [Capability.Capability<"Interactive", readonly [Capability.Capability<"Base", readonly []>]>]>, readonly Slot.EventName[], readonly Slot.AttributeName[], readonly Slot.RequirementName[], boolean>; readonly trigger: Slot.UnnamedSlot<Capability.Capability<"Interactive", readonly [Capability.Capability<"Base", readonly []>]>, readonly [Event.EventToken<"click">], readonly Slot.AttributeName[], readonly Slot.RequirementName[], boolean>; readonly marker: Slot.UnnamedSlot<Capability.Capability<"Container", readonly [Capability.Capability<"Interactive", readonly [Capability.Capability<"Base", readonly []>]>]>, readonly Slot.EventName[], readonly Slot.AttributeName[], readonly Slot.RequirementName[], boolean>; readonly number: Slot.UnnamedSlot<Capability.Capability<"Container", readonly [Capability.Capability<"Interactive", readonly [Capability.Ca …;A stepper, Zag's steps and Mantine's Stepper: a named ordered list of
steps, each a numbered marker with a title and a description, a connector
between each and the next. The current step is the application's: it is
aria-current="step", those before it complete (a check in place of the
number) and those after upcoming, as data-state on the item, marker,
title and connector. A current past the last step completes them all.
Given onSelect, a completed step is a button that goes back to it; a
step ahead never is, since reaching it is the form's job, not the list's.
A step's icon stands in the marker for its number, and its content
follows it in the item, beside the connector in a vertical stepper.
A step's state overrides the derived one (loading, error, or a later step
already complete), its aria-current staying by position, and its trailing
Html ends its row.
progress, how far the current step has gone, is the root's
--fk-steps-progress, which the recipe's connector: 'progress' fills
the current step's connector by.