Text
Displays text; supports bindings, font size, font weight, color, line clamping, and alignment.Signature
Attributes
Runtime behavior
- Renders as a block-level
span, keeping line breaks and wrapping automatically. Valueis interpolated before display; an unloaded binding renders as an empty string.Clampuses CSS line-clamp and requiresValueto be plain text.- Sizes map to Tailwind
text-xs…text-2xl.
Example
Gotchas
- Use
Clampto keep multi-line text in check, otherwise it stretches the card. Color="Destructive"is for error messages; do not use it for body text.{}in text is treated as a binding; to show literal braces, split them up or use a resource.