About
Here is The Item components
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds The Item one to your project and fits it to your theme.
Code
How The Item one is used: the demo's code. The component's own source comes with a free account.
Usage.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 default 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>
)
}








