DocsComponentsTemplatesThemesGitHub

ListRow

One list row: icon tile, title, subtitle, value, trailing control, chevron.

Code

import * as React from 'react';
import { List, ListRow } from '@fruit-labs/design';

export default function Demo() {
  return (
    <div
      style={{
        maxWidth: 420,
      }}
    >
      <List>
        <ListRow icon="lock" title="Privacy" subtitle="Location, camera, contacts" href="#" />
      </List>
    </div>
  );
}

Install

From npm:

npm install @fruit-labs/design

import { ListRow } from '@fruit-labs/design';

Or copy the TypeScript source into your project:

npx shadcn@latest add https://design.fruitlabs.online/r/list-row.json

Guidelines

  • Rows with href/onClick get a chevron and hover.

Props

PropTypeRequired
titleReact.ReactNodeYes
subtitleReact.ReactNodeNo
iconstring | React.ReactNodeNo
iconColorstringNo
valueReact.ReactNodeNo
trailingReact.ReactNodeNo
chevronbooleanNo
hrefstringNo
onClick() => voidNo
classNamestringNo

Edit this example on GitHub