Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/states/components/StateCard

Cockpit client (features), next. Source: ui/client/features/states/components/StateCard.tsx.

Functions#

StateCard()#

StateCard(__namedParameters): Element

Defined in: ui/client/features/states/components/StateCard.tsx:19

Shared frame of the four designed states (Design ): icon slot, title, plain-language hint and at most a couple of actions. Presentation only.

Props#

Prop Type Required Default Description
tone `'empty' 'loading' 'error' 'offline'`
role `'status' 'alert'` No —
size `'panel' 'inline'` No 'panel'
title string No —
hint string No —
actions StateAction[] No []
lead ReactNode No —
children ReactNode No —
testId string Yes —

Returns#

Element