Bare List
DisplayMITMinimal unstyled list primitive — for when you want a list without ornamentation.
bun add @otfdashkit/ui
Preview
Bare ListDisplay
Loading Storybook preview…
Code
@otfdashkit/uiimport { FileText } from 'lucide-react'
import { DataList, DataListItem } from '@otfdashkit/ui'
export function Example() {
return (
<div className="w-[420px]">
<DataList bordered={false} divided={false} className="space-y-1">
<DataListItem left={<FileText className="h-4 w-4" />} title="Quarterly report.pdf" description="2.4 MB · Updated 2h ago" />
<DataListItem left={<FileText className="h-4 w-4" />} title="Brand guidelines.pdf" description="8.1 MB · Updated yesterday" />
<DataListItem left={<FileText className="h-4 w-4" />} title="Release checklist.md" description="14 KB · Updated Monday" />
</DataList>
</div>
)
}
Free with the SDK. This component ships in @otfdashkit/ui under the MIT license.
Props
Props declared in the DataList source. Inherited HTML attributes are not listed.
| Prop | Type | Default | Description |
|---|---|---|---|
| bordered | boolean | true | |
| divided | boolean | true |