Code
Native Solid 2 fork. Original documentation and designs © WorkOS; historical posts retain their original context.
console.log()API Reference
This component is based on the code element and supports common margin props.
Examples
Size
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.
console.log()console.log()console.log()console.log()console.log()console.log()console.log()console.log()console.log()Variant
Use the variant prop to control the visual style.
console.log()console.log()console.log()console.log()Color
Use the color prop to assign a specific color.
console.log()console.log()console.log()console.log()High-contrast
Use the highContrast prop to increase color contrast with the background.
console.log()console.log()console.log()console.log()console.log()console.log()console.log()console.log()Weight
Use the weight prop to set the text weight.
console.log()console.log()Truncate
Use the truncate prop to truncate text with an ellipsis when it overflows its container.
linear-gradient(red, orange, yellow, green, blue);