4.2.0
CoreCard

Card API

Every prop of the 8 parts Card exports, generated from the package manifest.

import { Card, CardAction, CardContent, CardDescription, CardEyebrow, CardFooter, CardHeader, CardTitle } from '@oceanic-hub/brand-system'
Layer
core — shadcn-derived primitives.
Exports
Card · CardAction · CardContent · CardDescription · CardEyebrow · CardFooter · CardHeader · CardTitletypes: CardProps · CardVariant
Variants
  • variant: default | elevated | featured
Contract
packages/brand-system/src/components/card.contract.test-d.ts
Demos
7 on the Card page — rendered live, hydrated
Source
packages/brand-system/src/components/card.tsx

Generated from manifest/component-manifest.json, so it cannot drift from the source. For what Card is for, how it composes and what it looks like, see Card.

Card

CardProps

Prop

Type

Also accepts everything from React.HTMLAttributes<HTMLDivElement>.

CardAction

A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

CardContent

A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

CardDescription

A styled <p> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

CardEyebrow

A styled <span> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

CardFooter

A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

CardHeader

A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

CardTitle

A styled <h2> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

On this page