Data display

Card

@xui/card

A bounded, elevated container for a single piece of content.

Install

pnpm add @xui/card

Add the barrel to a standalone component's imports:

import { XuiCardImports } from '@xui/card';

@Component({
  imports: [XuiCardImports],
  // …
})

Examples

Default

Loading preview…

Interactive

Loading preview…

Compact

Loading preview…

API

XuiCard

directive[xuiCard]

A bounded, elevated container for a single piece of content.

Variants

AxisOptionsDefaultelevation012340interactivetruefalsefalseselectedtruefalsefalsecompacttruefalsefalse

Inputs

NameTypeDefaultclassClassValueThe user-defined classes. Merged last so they win over the variant classes.''elevationXuiCardElevationDrop-shadow depth, from flat (0) to floating (4). An interactive card lifts one step on hover.this.config.elevationinteractivebooleanRespond to hover and focus. Pair it with a <button> or <a> host.falseselectedbooleanDraw the selected ring.falsecompactbooleanReduce the internal padding.this.config.compact

Source

libs/ui/card/xui

xUI 2.0.0 — Apache 2.0 licensed. Built with Angular and Tailwind CSS.