API reference
@salmonui/layout/card
14 exported symbols: 8 functions, 5 interfaces and 1 type. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/layout/card';Functions
CardCard root (.salmon-card).CardActionsAction area (.salmon-card-actions) for Button elements.CardBodyContent (.salmon-card-body).CardDescriptionSubtitle / description (.salmon-card-description, a <p>).CardHeaderHeader (.salmon-card-header): optional media and a caption holding the title and description.CardMediaFull-bleed media slot (.salmon-card-media): put an <img> or <video> inside; title overlays it.CardSeparatorSeparator (.salmon-card-separator, an <hr>).CardTitleTitle (.salmon-card-title), a heading (<h3> by default).
Interfaces
Types
CardRenderPropsProps Card computes for its root (spread them in render).