ThinkingStepsView.id
property · packages/mixins-ui/src/thinkingSteps.ts:124
readonly id: stringPrefixes every id the trace draws, unique on the page.
Mixins / foldkit-mixins-ui
interface · packages/mixins-ui/src/thinkingSteps.ts:122
interface ThinkingStepsView<Message> {
readonly id: string
readonly steps: ReadonlyArray<ThinkingStep>
readonly open: Option.Option<boolean>
readonly onToggle: (open: boolean) => NoInfer<Message>
readonly trigger?: 'button' | 'none' | undefined
readonly duration?: number | undefined
readonly summary?: string | undefined
readonly openSteps?: ReadonlyArray<string> | undefined
readonly onToggleStep?: ((id: string) => NoInfer<Message>) | undefined
readonly words?: Partial<ThinkingStepsWords> | undefined
readonly style?: NamedStyle<typeof ThinkingStepsSlots> | undefined
readonly mixins?: MixinList<Message> | undefined
}ThinkingStepsView.idproperty · packages/mixins-ui/src/thinkingSteps.ts:124
readonly id: stringPrefixes every id the trace draws, unique on the page.
ThinkingStepsView.stepsproperty · packages/mixins-ui/src/thinkingSteps.ts:125
readonly steps: ReadonlyArray<ThinkingStep>ThinkingStepsView.openproperty · packages/mixins-ui/src/thinkingSteps.ts:127
readonly open: Option.Option<boolean>Open or shut, as the reader asked; none follows the work (shown).
ThinkingStepsView.onToggleproperty · packages/mixins-ui/src/thinkingSteps.ts:129
readonly onToggle: (open: boolean) => NoInfer<Message>Sent with the state a press on the trigger asks for.
ThinkingStepsView.triggerproperty · packages/mixins-ui/src/thinkingSteps.ts:135
readonly trigger?: 'button' | 'none' | undefinedbutton (default) draws the trigger over a part that opens and shuts;
none draws the steps alone, as a list a reader cannot shut, and the
open, onToggle and summary options are not read.
ThinkingStepsView.durationproperty · packages/mixins-ui/src/thinkingSteps.ts:137
readonly duration?: number | undefinedHow long the whole took, in milliseconds; default the steps' durations summed.
ThinkingStepsView.summaryproperty · packages/mixins-ui/src/thinkingSteps.ts:142
readonly summary?: string | undefinedThis use's words for the trigger, over the ones the steps give (Used 2
tools): content, not a word the widget owns.
ThinkingStepsView.openStepsproperty · packages/mixins-ui/src/thinkingSteps.ts:144
readonly openSteps?: ReadonlyArray<string> | undefinedThe ids of the steps whose detail is open, when onToggleStep is given.
ThinkingStepsView.onToggleStepproperty · packages/mixins-ui/src/thinkingSteps.ts:146
readonly onToggleStep?: ((id: string) => NoInfer<Message>) | undefinedMakes each step with detail a button that sends this with its id.
ThinkingStepsView.wordsproperty · packages/mixins-ui/src/thinkingSteps.ts:148
readonly words?: Partial<ThinkingStepsWords> | undefinedThe states' names, the trigger's words and the list's name.
ThinkingStepsView.styleproperty · packages/mixins-ui/src/thinkingSteps.ts:150
readonly style?: NamedStyle<typeof ThinkingStepsSlots> | undefinedA style of ThinkingStepsSlots, for the look.
ThinkingStepsView.mixinsproperty · packages/mixins-ui/src/thinkingSteps.ts:152
readonly mixins?: MixinList<Message> | undefinedMixins beside the style.