About
A settings list row that pairs a title and optional description on the left with a right-aligned control like a switch or select, for building app settings/preferences cards.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Setting Row to your project and fits it to your theme.
Code
How Setting Row is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/components/ui/select";
import { Switch } from "@/components/ui/switch";
import { SettingRow } from "@/components/ui/setting-row";
export default function SettingRowList() {
return (
<Card className="w-full max-w-lg">
<CardHeader>
<CardTitle>Bildirimler</CardTitle>
</CardHeader>
<CardContent className="divide-y">
<SettingRow
htmlFor="notify-orders"
title="Yeni sipariş bildirimleri"
description="Her yeni siparişte mağaza sahibine e-posta gönder."
control={<Switch id="notify-orders" defaultChecked />}
/>
<SettingRow
htmlFor="notify-stock"
title="Düşük stok uyarıları"
description="Bir varyantın stoğu 5'in altına düştüğünde."
control={<Switch id="notify-stock" />}
/>
<SettingRow
htmlFor="digest"
title="Günlük özet"
control={
<Select defaultValue="09">
<SelectTrigger id="digest" size="sm" className="w-28">
<SelectValue />
</SelectTrigger>
<SelectContent position="popper" align="end">
<SelectItem value="off">Kapalı</SelectItem>
<SelectItem value="09">09:00</SelectItem>
<SelectItem value="18">18:00</SelectItem>
</SelectContent>
</Select>
}
/>
</CardContent>
</Card>
);
}














