MiniCard
A compact card, with MiniCardStack for collapsing several into a stack.
Installation
import { MiniCard } from "@o/pipeline/legacy/components/mini-card";
Variants
default
dashed
MiniCardStack
Collapsing the MiniCardStack
Example: Controlled with 1 item
Example: Controlled with 2 items
Example: Controlled with 3+ items
Example: defaultOpen={false}
By default, the MiniCardStack is open. Set defaultOpen={false} to start it collapsed.
Implementation details
- For now,
MiniCardStackrequires acountprop andMiniCardStackItemrequires anindexprop. We have an open issue to explore automatically generating these values.