@sps-woodland/cards
SPS Woodland Design System card, insight card, and scrollable container components.
Deprecated: this package will be removed in Woodland 9.0. It only re-exports
@sps-woodland/core/cards,@sps-woodland/core/insight-card,@sps-woodland/core/scrollable-containerfrom@sps-woodland/core. Components, props, and behavior are identical, so migrating is an import-path change.
Use @sps-woodland/core instead
import {
Card,
CardHeader,
CardFooter,
CardTitle,
} from "@sps-woodland/core/cards";
import { InsightCard, InsightCardSet } from "@sps-woodland/core/insight-card";
import { ScrollableContainer } from "@sps-woodland/core/scrollable-container";
import "@sps-woodland/core/cards/style.css";
import "@sps-woodland/core/insight-card/style.css";
import "@sps-woodland/core/scrollable-container/style.css";
This package bundled three independent families. Import only the ones you use, and each one's stylesheet.
Import every component of a family from the same subpath shown above. Core also has flat
per-component subpaths, but they are separate module instances, and mixing them with the
family barrel can silently break parent/child components. Import component stylesheets before
@sps-woodland/tokens/lib/vanilla-extract/style.css.
Migrate automatically
pnpm dlx --package=@sps-woodland/codemods migrate-wrapper-imports src --write
This rewrites @sps-woodland/cards JavaScript and stylesheet imports to the core paths above.
Then add @sps-woodland/core (8.53 or later) to your dependencies if needed, remove
@sps-woodland/cards, and reinstall. See the
Woodland 8.0 upgrade guide for details.