WireScript
Components

card

Container with border and shadow.

A styled container with border and subtle shadow, commonly used for grouping related content.

Usage

Basic Examples

Layout

Cards support the same layout flags as box:

Properties

accepts children

Layout

PropertyTypeDefault
:rowflag-
:colflag-
:gridflag-
:wrapflag-

Alignment

PropertyTypeDefault
:centerflag-
:startflag-
:endflag-
:betweenflag-
:aroundflag-
:stretchflag-

Sizing

PropertyTypeDefault
:fullflag-
:fitflag-
:fillflag-

Spacing

PropertyTypeDefault
:gapnumber0
:paddingnumber0

Dimensions

PropertyTypeDefault
:widthany-
:heightany-

Position

PropertyTypeDefault
:stickyflag-
:fixedflag-
:absoluteflag-
:relativeflag-
:topnumber-
:leftnumber-
:rightnumber-
:bottomnumber-

Variants

PropertyTypeDefault
:primaryflag-
:secondaryflag-
:ghostflag-
:dangerflag-
:successflag-
:warningflag-
:infoflag-

Navigation

PropertyTypeDefault
:totarget-

Examples

Info Card

Product Card

User Card

Card Grid

On this page