Card

Frames a region of related content with corner brackets instead of a border.

Default card

Idle

Corner brackets are the frame, no perimeter stroke.

Variants

Supported configurations for this component.

Variants

4 examples
Default

Default card

Idle

Corner brackets are the frame, no perimeter stroke.

Glow

Highlight card

Live

Tinted accent gradient surface with corner markers.

Bordered

Bordered card

Idle

A continuous 1px border instead of the bracket frame.

No markers

Unframed card

Idle

Markers off, for a card nested inside another frame.

Add to your project

One command adds this component to your project.

1

Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.

npx shadcn@latest add @aicanvas/••••••••••••

Light and dark both come with the install and follow the dark class on <html>, the shadcn dark mode setup (next-themes with attribute="class").

Props

Every prop this component accepts. Any other prop is forwarded to the underlying element.

Card

PropTypeDefaultDescription
variant'default'|'glow''default'One of: default, glow.
borderedbooleanfalseToggle a continuous 1px border. Off by default. Andromeda cards rely on corner brackets, not perimeter strokes.
markersbooleantrueToggle the corner markers motif.
markerPropsimport('./CornerMarkers').CornerMarkersProps-Pass-through overrides for the inner CornerMarkers.
childrenReact.ReactNode-Content rendered inside the component.
classNamestring-Additional CSS classes applied to the root element.
styleReact.CSSProperties-Inline styles applied to the root element.

CardSection

PropTypeDefaultDescription
childrenReact.ReactNode-Content rendered inside the component.
classNamestring-Additional CSS classes applied to the root element.
styleReact.CSSProperties-Inline styles applied to the root element.

More Andromeda Pro components