Usage
import { Text } from '@loomhq/lens'
<Text>Content</Text>
Sizes
Weights
Semantic variants
Alignment
HTML tag
Change the HTML tag with htmlTag
prop.
Color
Use one of the palette colors.
Ellipsis
Ellipsis lines
Use hasEllipsis
and ellipsisLines
to display multiple lines of text with ellipsis.
No Wrap
Use noWrap
if you would like your text to not to not wrap and truncate. Does not work if hasEllipsis
is enabled.
Props
name
type
default
size
TextSize
'body-md'
fontWeight
'book' | 'bold'
'book'
htmlTag
'h1' | 'h2' | 'h3' | 'h4' | 'p' | 'span' | 'div'
'span'
variant
'body' | 'title' | 'mainTitle'
alignment
'left' | 'right' | 'center'
color
string
isInline
boolean
isDimmed
boolean
hasEllipsis
boolean
noWrap
boolean
ellipsisLines
number
children
React.ReactNode
sizeMinMax
string[]
className
string