ContainerCard7 props
Card
Card is a bordered, elevated container for discrete, self-contained items: things you could reorder, remove, or interact with independently. Cards are NOT the default layout too...
공식 문서 열기Preview
default
Card surface
Use cards for independent objects.muted
Card surface
Use cards for independent objects.blue
Card surface
Use cards for independent objects.Import
import {Card} from '@astryxdesign/core/Card';Astryx 문서 권장 방식대로 root barrel이 아니라 컴포넌트 subpath에서 가져옵니다.
When to use
Card is a bordered, elevated container for discrete, self-contained items: things you could reorder, remove, or interact with independently. Cards are NOT the default layout too...
cardsurfacepanelcontainerelevatedshadowboxpaper
Important props
padding0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10optional
variantdefault | muted | blue | cyan | gray | green | orange | pink | purple | red | teal | yellowoptional
Theming targets
astryx-card
Best practices
- DoAsk "could I reorder or remove this independently?" If yes, it's a card. If no, it's just a section of the page: use a heading + Stack or Section.
- DoUse cards for discrete items: a single user profile, a single notification, a single metric, a product in a grid. Each card represents one "thing" with clear interaction boundar...
- DoSpacing and alignment alone create visual grouping. Not everything needs a container; try removing the card and see if the grouping is still clear from whitespace and typography.
- DoKeep padding consistent across sibling cards so they align visually in a grid or list.