ContentContentContent
ContentContentContent
ContentContentContent
Usage
import { List, ListRow } from '@loomhq/lens'
<List columns={['4fr', '1fr']} gap="large">
<ListRow paddingX="medium" paddingY="small">
<div>Content</div>
<div>Content</div>
</ListRow>
<ListRow paddingX="medium" paddingY="small">
<div>Content</div>
<div>Content</div>
</ListRow>
</List>
Padding and height
Variant
Background color
Clickable list items
Examples
Simple list
Data list
With ellipsis
Props
List
name
type
default
variant
'clear' | 'border' | 'stripe'
'stripe'
columns
(string | number)[]
htmlTag
string
backgroundColor
string
children
React.ReactNode
ListRow
name
type
default
backgroundColor
string
className
string
htmlTag
string
children
React.ReactNode
onClick
React.ReactEventHandler
href
string