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

Artifact

API and Development

View SourceOpens in a new tabSubmit IssueOpens in a new tab
Import Artifact, ArtifactStatus from @prepared911/ui/artifact.
Artifact
PropTypeDefaultNotes
titleLocalizedMessage | DisplayValuerequiredA heading
descriptionLocalizedMessage | DisplayValueUnder the title
childrenReactNodeBody, between the header and the status
statusReactNodeFooter slot at the inline end, usually ArtifactStatus
headingLevelCardHeadingLevelH3
sizeCardSizeDefault
classNamestring
refRef<HTMLDivElement>The card
ArtifactStatus
PropTypeDefaultNotes
labelLocalizedMessagerequiredSuch as "Built"
iconGlyphcheckDecorative
classNamestring
refRef<HTMLSpanElement>
data-* attributes pass to the status. Reserved design-system state names are dropped with a warning.
Exports
Artifact, ArtifactStatus, and the types ArtifactProps and ArtifactStatusProps.
Props
NameTypeDefaultDescription
titleLocalizedMessage | DisplayValue—Heading copy of the card.
childrenReactNode—Body content between the header and the status.
classNamestring—Classes appended after the generated classes.
descriptionLocalizedMessage | DisplayValue—Supporting text under the title.
headingLevelCardHeadingLevelCardHeadingLevel.H3Heading element of the title. The visual role is fixed, so the rank follows the page outline.
refRef<HTMLDivElement>—Ref to the card element.
sizeCardSizeCardSize.DefaultInterior padding.
statusReactNode—Trailing status slot, usually an {@link ArtifactStatus }. It sits at the inline end of the footer.
Storybook
Interactive examples and edge cases for this component are in Storybook.
DefaultOpens in a new tab
Previous
Artifact / Usage
Next
Artifact / Accessibility
On this page
Artifact
ArtifactStatus
Exports
Props
Storybook