DocsComponentsTemplatesThemesGitHub

Settings

Account rows and notification switches.

Install

npx shadcn@latest add https://design.fruitlabs.online/r/template-settings.json

Code

import { Avatar, List, ListRow, Stack, Switch } from '@fruit-labs/design';

export default function Template() {
  return (
    <Stack gap={4}>
      <List header="Account">
        <ListRow icon={<Avatar name="Ada Lovelace" />} title="Ada Lovelace" subtitle="Owner" chevron />
        <ListRow icon="lock" title="Password" value="Changed in May" chevron />
      </List>
      <List header="Notifications">
        <ListRow icon="mail" title="Email updates" trailing={<Switch label="Email updates" showLabel={false} defaultChecked />} />
        <ListRow icon="bell" title="Push alerts" trailing={<Switch label="Push alerts" showLabel={false} />} />
      </List>
    </Stack>
  );
}