Card

Compound primitive: Card / Header / Content / Footer / Title / Description. Corner brackets do the framing by default, with a bordered toggle for a continuous 1px border and a glow variant that adds an accent tint.

/// Default

Default card

Idle

Sharp corners with bracket markers. The brackets are the frame.

/// Glow

Highlight card

Live

Tinted accent gradient surface.

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/andromeda-card

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 components