Card

A content container for grouping related information.

Installation

Install the component package, shared coss-svelte theme, and Bits UI peer.

npm install coss-svelte @coss-svelte/theme bits-ui

Usage

Import the Svelte component exports directly from the package.

import { Card, CardDescription, CardFooter, CardHeader, CardPanel, CardTitle } from "coss-svelte";

Anatomy

  • Card
  • CardDescription
  • CardFooter
  • CardHeader
  • CardPanel
  • CardTitle

API Reference

Card

A content container for grouping related information.

children : Snippet<[]>

Inherits from Svelte component attributes.

CardDescription

Provides supporting copy for the parent component.

children : Snippet<[]>

Inherits from Svelte component attributes.

CardFooter

Groups footer content and actions for the parent component.

children : Snippet<[]>

Inherits from Svelte component attributes.

CardHeader

Groups heading content for the parent component.

children : Snippet<[]>

Inherits from Svelte component attributes.

CardPanel

Renders the main panel surface for the parent component.

children : Snippet<[]>

Inherits from Svelte component attributes.

CardTitle

Names the parent surface or section.

children : Snippet<[]>

Inherits from Svelte component attributes.

Implementation Details

Status
Stable
Foundation
native
Category
Content & Display
Particles
11