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

Actions

API and Development

View SourceOpens in a new tabSubmit IssueOpens in a new tab
Import Action, Actions from @prepared911/ui/actions.
Actions
PropTypeDefaultNotes
labelLocalizedMessagerequiredAccessible name of the role="group"
childrenReactNodeActions. With none, nothing renders
idstringId of the group
refRef<HTMLDivElement>The group element
data-*stringReserved design-system state names are dropped with a warning
Action
PropTypeDefaultNotes
iconGlyphrequiredFrom @prepared911/ui/icons/<name>
labelLocalizedMessagerequiredAccessible name and tooltip text
onClickMouseEventHandler<HTMLButtonElement>
disabledbooleanfalseNative disabled
sizeButtonSizeSmall
refRef<HTMLButtonElement>The button
data-*string
Exports
Actions, Action, and the types ActionsProps and ActionProps.
Props
NameTypeDefaultDescription
labelLocalizedMessage—Accessible name of the group, such as "Message actions". Required because {@link ButtonGroup } names its role="group" and an unnamed group is a landmark-free cluster a screen reader cannot tell apart.
childrenReactNode—{@link Action } children. With none, nothing renders.
idstring—Id of the group element.
refRef<HTMLDivElement>—Ref to the group element.
Storybook
Interactive examples and edge cases for this component are in Storybook.
DefaultOpens in a new tab
Previous
Actions / Usage
Next
Actions / Accessibility
On this page
Actions
Action
Exports
Props
Storybook