action-card
lyse/action-cardFreeComponent
lyse publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by lyse on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://ui.getlyse.com/r/action-card.jsonSource
1import * as React from "react"23import { cn } from "@/lib/utils"4import "./action-card.css"56function ActionCard({7 className,8 title,9 description,10 icon,11 logo,12 action,13 label,14 ...props15}: React.ComponentProps<"div"> & {16 title?: string17 description?: string18 icon?: React.ReactNode19 logo?: React.ReactNode20 action?: React.ReactNode21 label?: string22}) {23 return (24 <div25 data-slot="action-card"26 className={cn("action-card-base", className)}27 {...props}28 >29 <div className="flex flex-1 items-center gap-[var(--layout-gap-lg)] min-w-0">30 {logo && (31 <div className="action-card-logo shrink-0">{logo}</div>32 )}33 {!logo && icon && (34 <div className="action-card-icon shrink-0">{icon}</div>35 )}36 {(title || description) && (37 <div className="flex flex-1 flex-col gap-[var(--layout-gap-xs)] min-w-0 text-content-note">38 {title && (39 <p className="font-accent [color:var(--text-base-bolder)]">40 {title}41 </p>42 )}43 {description && (44 <p className="[color:var(--text-base-moderate)]">45 {description}46 </p>47 )}48 </div>49 )}50 </div>51 {action && <div className="shrink-0">{action}</div>}52 {!action && label && (53 <p className="action-card-label shrink-0 text-content-note">54 {label}55 </p>56 )}57 </div>58 )59}6061export { ActionCard }
What it pulls in
Other registry items
Files it writes
More from lyse
All 33 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| alertalert | lyse | Components | Free | 2 deps · 2 files | |
| alert-dialogalert-dialog | lyse | Components | Free | 2 deps · 2 files | |
| avataravatar | lyse | Components | Free | 3 deps · 2 files | |
| badgebadge | lyse | Components | Free | 1 dep · 2 files | |
| banner-infobanner-info | lyse | Components | Free | 2 deps · 2 files | |
| breadcrumbbreadcrumb | lyse | Components | Free | 2 deps · 2 files | |
| buttonbutton | lyse | Components | Free | 2 deps · 2 files | |
| callout-cardcallout-card | lyse | Components | Free | 1 dep · 2 files |
