C Accordion 11
C Accordion 11 é um componente de layout para React e Tailwind CSS, da biblioteca ReUI, com licença MIT. Copia e cola no teu projeto.
ReUI
MIT
layout
O que é
C Accordion 11 é um componente de layout para React e Tailwind CSS, da biblioteca ReUI, com licença MIT. Copia e cola no teu projeto.
Como usar
Abre o componente no catálogo, carrega em copiar, e cola no teu projeto. O prompt copiado leva o código e as regras para o teu agente o reproduzir sem alterar nada.
Cinco cópias grátis por mês. Sem cartão.
Não precisa de pacotes além do que o projeto já tem
Licença
Este componente vem de ReUI e é redistribuído sob a licença MIT, que permite uso comercial. O aviso de copyright viaja com o código.
C Accordion 11
import { Badge } from "@/components/reui/badge"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Button } from "@/components/ui/button"
import { ButtonGroup } from "@/components/ui/button-group"
import { Input } from "@/components/ui/input"
import { Spinner } from "@/components/ui/spinner"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
export function Pattern() {
return (
<div className="mx-auto mb-auto w-full max-w-lg">
<Accordion
multiple={false}
defaultValue={["pos-app"]}
className="border-border rounded-lg overflow-hidden border"
>
{/* Step 1: Completed */}
<AccordionItem
value="add-products"
className="bg-transparent px-4"
>
<AccordionTrigger className="items-center py-4 font-semibold hover:no-underline">
<div className="flex w-full items-center justify-between pr-4">
<div className="flex items-center justify-center gap-3">
<div className="flex size-5 items-center justify-center">
<IconPlaceholder
lucide="CircleCheckIcon"
tabler="IconCircleCheck"
hugeicons="CheckmarkCircle01Icon"
phosphor="CheckCircleIcon"
remixicon="RiCheckboxCircleLine"
className="fill-success text-background size-5"
/>
</div>
<span className="text-sm font-medium">Add products</span>
</div>
<Badge variant="success-light">Ready</Badge>
</div>
</AccordionTrigger>
<AccordionContent className="text-muted-foreground pr-0 pb-4 pl-8 leading-relaxed">
Your products have been successfully added and are ready for sale.
</AccordionContent>
</AccordionItem>
{/* Step 2: Expanded/In Progress */}
<AccordionItem
value="pos-app"
className="bg-transparent px-4"
>
<AccordionTrigger className="items-center py-4 font-semibold hover:no-underline">
<div className="flex w-full items-center justify-between pr-4">
<div className="flex items-center gap-3">
<div className="flex size-5 items-center justify-center rounded-full bg-yellow-100 dark:bg-yellow-950">
<div className="size-2 rounded-full bg-yellow-500" />
</div>
<span className="text-foreground text-sm font-medium">
Get the point of sale application
</span>
</div>
</div>
</AccordionTrigger>
<AccordionContent className="pt-2 pl-8">
<div className="flex flex-col gap-6 md:flex-row md:items-start md:justify-between">
<div className="flex-1 space-y-6">
<p className="text-muted-foreground text-sm leading-relaxed">
Scan the QR code or send yourself the link to get the app. The
mobile app is where you'll manage orders, track
inventory, and view analytics on the go.
</p>
<ButtonGroup>
<Input placeholder="james@alignui.com" />
<Button variant="outline" aria-label="Send link">
Send link
</Button>
</ButtonGroup>
</div>
<div className="bg-muted/30 border-border rounded-lg flex shrink-0 items-center justify-center border p-3">
<IconPlaceholder
lucide="QrCodeIcon"
tabler="IconQrcode"
hugeicons="QrCodeIcon"
phosphor="QrCodeIcon"
remixicon="RiQrCodeLine"
className="size-20"
strokeWidth={1.5}
/>
</div>
</div>
</AccordionContent>
</AccordionItem>
{/* Step 3: Pending */}
<AccordionItem
value="price-stock"
className="bg-transparent px-4"
>
<AccordionTrigger className="items-center py-4 font-semibold hover:no-underline">
<div className="flex w-full items-center justify-between pr-4">
<div className="flex items-center gap-3">
<div className="flex size-5 items-center justify-center">
<Spinner className="opacity-60" />
</div>
<span className="text-muted-foreground text-sm font-medium">
Product price & stock
</span>
</div>
</div>
</AccordionTrigger>
<AccordionContent className="text-muted-foreground pl-8 text-sm leading-relaxed">
Configure your product pricing and manage stock levels across all
locations.
</AccordionContent>
</AccordionItem>
</Accordion>
</div>
)
}