Leave Yamada UI a star

Star
Yamada UIYamada UIv1.5.1

Stat

Stat is used to display numbers or data within a box.

Source@yamada-ui/stat

Theming

The Stat is a multi part component.

export const Stat: ComponentMultiStyle<"Stat"> = {
baseStyle: {
container: {},
label: {
color: ["blackAlpha.700", "whiteAlpha.600"],
fontWeight: "medium",
},
number: ({ colorScheme: c }) => ({
fontFeatureSettings: '"pnum"',
fontVariantNumeric: "proportional-nums",
verticalAlign: "baseline",
fontSize: "5xl",
color: c
? [`${c}.500`, `${c}.600`]
: ["blackAlpha.800", "whiteAlpha.700"],
fontWeight: "extrabold",
}),
helperMessage: {
fontSize: "sm",
color: ["blackAlpha.700", "whiteAlpha.600"],
},
icon: {
marginEnd: "1",
w: "3.5",
h: "3.5",
verticalAlign: "middle",
var: [
{
name: "increase",
token: "colors",
value: "success.400",
},
{
name: "decrease",
token: "colors",
value: "danger.400",
},
],
},
},
defaultProps: {},
}
Copied!

Edit this page on GitHub

PreviousCardNextTable