Axon 911 Frontend DocsAxon 911 Frontend Docs
Axon 911 Frontend Docs
    Loading navigation…
U
User
Switch to light mode
  1. Components
  2. Chain Of Thought
  3. API and Development

Chain Of Thought

API and Development

View SourceOpens in a new tabSubmit IssueOpens in a new tab
Import ChainOfThought, ChainOfThoughtStep, ChainOfThoughtStatus from @prepared911/ui/chain-of-thought.
ChainOfThought
PropTypeDefaultNotes
labelLocalizedMessagerequiredTrigger label, for example "Chain of thought".
openbooleanControlled open state.
defaultOpenbooleantrueInitial open state when uncontrolled.
onOpenChange(open: boolean, details: ChangeDetails) => voidReason is trigger-press.
classNamestringAppended to the root.
childrenReactNodeChainOfThoughtStep items.
ChainOfThoughtStep
PropTypeDefaultNotes
labelLocalizedMessage | DisplayValuerequiredWhat the step does.
descriptionLocalizedMessage | DisplayValueSecondary line under the label.
iconGlyphSemantic marker. Without it the marker is a status shape and statusLabel is required.
statusChainOfThoughtStatusCompletePicks the status shape when there is no icon; an icon marker ignores it.
statusLabelLocalizedMessagerequired without iconSpoken status, visually hidden. Optional on an icon step, which paints no status.
classNamestringAppended to the step.
ChainOfThoughtStatus
Pending (hourglass), Active (informative dot that pulses) and Complete (success check). Each has its own shape, so no status is told by color alone.
Props
NameTypeDefaultDescription
labelLocalizedMessage—Trigger label, for example "Chain of thought".
childrenReactNode—Compose {@link ChainOfThoughtStep } children. They render as an ordered list.
classNamestring—Classes appended to the root.
defaultOpenbooleantrueInitial open state when uncontrolled.
onOpenChangeCollapsibleOpenChangeHandler—Fires when the trigger requests a change. details.cancel() keeps the current state.
openboolean—Controlled open state.
Storybook
Interactive examples and edge cases for this component are in Storybook.
DefaultOpens in a new tab
Previous
Chain Of Thought / Usage
Next
Chain Of Thought / Accessibility
On this page
ChainOfThought
ChainOfThoughtStep
ChainOfThoughtStatus
Props
Storybook