Genesis
@beta

WidgetTile

The tile every widget draws. Use the component that names the job (`StatCard`, `HeadlineNumbers`, `SummaryCard`, `<Widget>`); reach for this one for a tile none of them draws, so it still wears the app style's tile parts.

packages/ui/src/components/data/widget/WidgetTile.tsx

Import
Subpath export: @marktiderman/genesis-ui/data
import { WidgetTile } from "@marktiderman/genesis-ui/data";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

WidgetTile

The tile every widget draws. Use the component that names the job (`StatCard`, `HeadlineNumbers`, `SummaryCard`, `<Widget>`); reach for this one for a tile none of them draws, so it still wears the app style's tile parts.

PropTypeDefaultDescription
label*string—What the tile is called.
childrenReactNode—Under the value: a bar, a list, a chart, a summary's body.
classNamestring—
detailReactNode—A short line under the value.
detailClassNamestring—The detail's class (a tone's colour).
hrefstring—Makes the whole tile a link (stat, widget).
iconReactNode | LucideIcon—An icon beside the label (stat, widget) or the title (summary).
iconClassNamestring—The icon's class (a colour).
kindstring—The widget kind, set as `data-kind` (widget).
linkComponentLinkComponent({ href, children, testID, ...rest }) => ( <a href={href} data-testid={testID} {...rest}> {children} </a> )
metaReactNode—A short line on the header's right (summary, widget).
stateenumreadyWhat a widget is showing; set as `data-state`.
testIDstring—
valueReactNode—The number, or whatever stands for it.
variantenumwidget