Leave Yamada UI a star

Star
Yamada UIYamada UIv1.6.4

Code

Code is a component that represents a code block. By default, it renders a code element.

Source@yamada-ui/typography

Props

CodeProps

colorScheme

Description

The visual color appearance of the component.

Type

"blackAlpha" | "whiteAlpha" | "amber" | "blue" | "info" | "link" | "primary" | "cyan" | "emerald" | "flashy" | "fuchsia" | "gray" | "green" | "success" | "indigo" | "lime" | "neutral" | "orange" | "warning" | "pink" | "purple" | "red" | "danger" | "rose" | "sky" | "teal" | "violet" | "secondary" | "yellow"

Default

"gray"

size

Description

The size of the Code.

Type

"xs" | "sm" | "md" | "lg"

Default

"sm"

variant

Description

The variant of the Code.

Type

"outline" | "solid" | "subtle" | "surface"

Default

"subtle"

Edit this page on GitHub

PreviousEmNextHighlight