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

Task

API and Development

View SourceOpens in a new tabSubmit IssueOpens in a new tab
Import Task from @prepared911/ui/task.
Task
PropTypeDefaultNotes
labelLocalizedMessagerequiredTrigger label, for example "Worked for 5m 26s".
itemsreadonly TaskItem[]The work performed.
openbooleanControlled open state.
defaultOpenbooleanfalseInitial open state when uncontrolled.
onOpenChange(open: boolean, details: ChangeDetails) => voidReason is trigger-press.
classNamestringAppended to the root.
TaskItem
FieldTypeNotes
idstringList key.
textLocalizedMessage | DisplayValueWhat was done.
filesreadonly TaskFile[]Files touched.
TaskFile
FieldTypeNotes
nameLocalizedMessage | DisplayValueChip label and key.
iconGlyphOptional decorative glyph.
Props
NameTypeDefaultDescription
labelLocalizedMessage | DisplayValue—Trigger label for the whole summary, for example "Worked for 5m 26s". The caller formats any elapsed time, because the design system ships no translation runtime ([ADR 0009](../../../docs/decisions/0009-copy-prop-types.md)).
classNamestring—@deprecated Pass layout through enum props and shipped parts. Request a missing case via find-pattern.
defaultOpenbooleanfalseInitial open state when uncontrolled.
itemsreadonly TaskItem[]—The work performed as data; the list layout belongs to the component.
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
Task / Usage
Next
Task / Accessibility
On this page
Task
TaskItem
TaskFile
Props
Storybook