Component reference
Status
The state badge: a decorative dot and the state in a word or two, on a soft tint of the state's ink.
Preview
Text, indicator, and page slots
render: () => (
<SchemePair>
{(scheme) => (
<Stack gap="relaxed">
<Inline gap="normal">
<Status state="processing" label="In progress" />
<Status state="returned" label="Run returned" />
<Status state="warning" label="Waiting for answer" />
<Status state="danger" label="Connection failed" />
<Status state="unknown" label="Status unconfirmed" />
</Inline>
<ListGroup>
<ListRow
title="Model source"
description="Choose an executable model connection"
status={<Status state="success" label="In use" />}
actions={
<Button size="small" variant="quiet">
Configure
</Button>
}
/>
<ListRow
title="Local service"
status={<Status state="unknown" label="No version yet" />}
/>
</ListGroup>
<ResourceCard
title="Message extensions"
subtitle="Channel"
status={<Status state="success" label="Enabled" />}
actions={<Button size="small">View settings</Button>}
/>
<Status
state="danger"
label="Connection failed for development-workspace-with-a-long-identifier; retry after checking its configuration."
/>
<Field label="Connection name" htmlFor={`status-connection-${scheme}`}>
<Input id={`status-connection-${scheme}`} value="Development workspace" />
</Field>
</Stack>
)}
</SchemePair>
)Installation
bun add meowtail
Usage
Taken from the examples on this page.
import { Status } from "meowtail";
<Status state="processing" label="In progress" />API reference
Use as slot content; composed markers remain owned by WorkCard and Timeline.
Props
| Prop | Type | Default |
|---|---|---|
state | StatusDotProps["state"] | – |
labelRequiredSupply visible, non-empty content, including when the Child is dynamic. | Exclude<Child, null | undefined | boolean> | – |
size | never | – |
halo | never | – |
Also takes className, children and the attributes and events of its root element.
DOM parts
rootlabel
Registry
The component is registered as status in the meowtail component registry.