c-checkbox-14.tsx
import { Checkbox } from "@/components/ui/checkbox"
import {
Field,
FieldGroup,
FieldLabel,
FieldTitle,
} from "@/components/ui/field"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
const items = [
{
title: "Payments",
description: "Receive payments from your customers",
icon: (
<IconPlaceholder
lucide="CircleDollarSignIcon"
tabler="IconPremiumRights"
hugeicons="DollarCircleIcon"
phosphor="CurrencyCircleDollarIcon"
remixicon="RiMoneyDollarCircleLine"
aria-hidden="true"
className="size-4"
/>
),
checked: true,
},
{
title: "Invoices",
description: "Create and send invoices to your customers",
icon: (
<IconPlaceholder
lucide="FileTextIcon"
tabler="IconFileText"
hugeicons="File02Icon"
phosphor="FileTextIcon"
remixicon="RiFileTextLine"
aria-hidden="true"
className="size-4"
/>
),
checked: false,
},
{
title: "Billing",
description: "Manage your billing and subscriptions",
icon: (
<IconPlaceholder
lucide="CreditCardIcon"
tabler="IconCreditCard"
hugeicons="CreditCardIcon"
phosphor="CreditCardIcon"
remixicon="RiBankCardLine"
aria-hidden="true"
className="size-4"
/>
),
checked: false,
},
{
title: "Reports",
description: "View your reports and analytics",
icon: (
<IconPlaceholder
lucide="ChartNoAxesColumnDecreasingIcon"
tabler="IconAntennaBars5"
hugeicons="SignalFull02Icon"
phosphor="ChartBarIcon"
remixicon="RiBarChart2Line"
aria-hidden="true"
className="size-4"
/>
),
checked: false,
},
]
export function Pattern() {
return (
<FieldGroup className="grid w-full max-w-xs grid-cols-2 gap-4">
{items.map((item) => (
<FieldLabel key={item.title} className="relative p-0">
<Field orientation="horizontal">
<Checkbox
defaultChecked={item.checked}
className="absolute top-3 right-3 size-5 rounded-full"
/>
<FieldTitle className="flex flex-col items-start">
<div className="bg-background border-border rounded-2xl flex shrink-0 items-center justify-center border p-2 shadow-xs shadow-black/5">
{item.icon}
</div>
<div className="flex flex-col items-start gap-0.5">
<span className="text-sm font-semibold"> {item.title} </span>
<span className="text-muted-foreground text-xs">
{" "}
{item.description}{" "}
</span>
</div>
</FieldTitle>
</Field>
</FieldLabel>
))}
</FieldGroup>
)
}






























