# Settings row

> Title and description with a trailing Switch.

A shadcn/ui block from the [@flx](https://ui.flexnative.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/flx/item-15).

- Page, with a live preview: https://shadcn.exchange/r/flx/item-15
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/flx/item-15-light-424dadbe493a2cb5.png
- Registry item: https://ui.flexnative.com/r/item-15.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.flexnative.com/r/item-15.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `item`, `switch`

## Files

### `registry/patterns/item/item-15.tsx`

```tsx
import {
  Item,
  ItemActions,
  ItemContent,
  ItemDescription,
  ItemGroup,
  ItemTitle,
} from '@/components/ui/item'
import { Switch } from '@/components/ui/switch'

const settings = [
  {
    title: 'Marketing emails',
    description: 'Product updates, tips, and announcements.',
    defaultChecked: true,
  },
  {
    title: 'Security alerts',
    description: 'Sign-in notifications and password changes.',
    defaultChecked: true,
  },
  {
    title: 'Weekly digest',
    description: 'A summary of your team activity every Monday.',
    defaultChecked: false,
  },
]

export function Item15() {
  return (
    <ItemGroup className="w-full max-w-md">
      {settings.map((s) => (
        <Item key={s.title} variant="outline">
          <ItemContent>
            <ItemTitle>{s.title}</ItemTitle>
            <ItemDescription>{s.description}</ItemDescription>
          </ItemContent>
          <ItemActions>
            <Switch defaultChecked={s.defaultChecked} />
          </ItemActions>
        </Item>
      ))}
    </ItemGroup>
  )
}
```
