ikascom

Setting Row

Cards

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>
  );
}

More by ikascom

View all
  • Animated Number

    Animated Number

    17
  • Action Bar

    Action Bar

    5
  • Field

    Field

  • Collapse

    Collapse

  • Layout

    Layout

  • Launchpad Setup Checklist

    Launchpad Setup Checklist

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.4K
  • Statistics Card 2

    Statistics Card 2

    322
  • Card

    Card

    19
  • Stats cards with links

    Stats cards with links

    46
  • Model Grid Cards

    Model Grid Cards

    6
  • Admin Dashboard Cards

    Admin Dashboard Cards

    46
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    781
  • Card

    Card

    2