Code
Represents keyboard input or a hotkey.
Loading...
API Reference
Prop | Type | Default |
---|---|---|
color | RadixColor | - |
size | ResponsiveSize | - |
variant | "solid" | "soft" | "outline" | "ghost" | "surface" | 'soft' |
weight | "light" | "regular" | "medium" | "bold" | - |
class | - | - |
class | - | - |
Examples
Sizes
Use the size
prop to control text size.
This prop also provides correct line height and corrective letter spacing—as text size increases,
the relative line height and letter spacing decrease.
Loading...
Variants
Use the variant
prop to control the visual style.
Loading...