Simal UI
Components

Card

A surface that stacks an optional image, content and a footer.

The props worth knowing sit on the sub-components rather than on Card:

  • CardContent takes linearGradientColors, which lays a gradient between a CardImage and the text so copy stays legible over any photograph.
  • CardFooter takes iosBlurIntensity and blurs what is behind it on iOS; Android and web fall back to a solid fill.
  • CardBadge positions itself against the card, not the content.

Import

import { Card } from '@simal/ui/nativewindui';

Props

PropValuesDefaultDescription
rootClassNameThe outer box — width lives here. className styles the inner surface, so a width set there will not size the card.

Examples

With Image

The full composition: CardImage fills the card, CardContent lays a gradient over it so the text stays legible, and CardFooter blurs on iOS.

Grid

On this page