Compositions
AttributeCard
AttributeCard UI component. Import from "@instruments/materia-ui/compositions/attribute-card".
Usage
Best practices
Use
AttributeCardfor a single label + prominent value stat tile (a KPI/metric); for many key/value pairs about one entity reach forDescriptionListinstead.Pass a Lucide component to
icon(e.g.RulerIcon), not a rendered<Icon/>- it is handed to the internalIconat a fixedsmsize.This is a preset composition of
Card; restyle via the surrounding layout rather than reaching inside - for a bespoke layout composeCard/CardContentdirectly.
Props
Also exports
- interface
AttributeCardProps