@sps-woodland/buttons
SPS Woodland Design System button components
Deprecated: this package will be removed in Woodland 9.0. It only re-exports
@sps-woodland/core/buttonfrom@sps-woodland/core. Components, props, and behavior are identical, so migrating is an import-path change.
Use @sps-woodland/core instead
import { Button } from "@sps-woodland/core/button";
import "@sps-woodland/core/buttons/style.css";
Always import Button from the flat @sps-woodland/core/button subpath, not the
@sps-woodland/core/buttons barrel. The barrel is a separate copy of Button, and core's
list-bar InputGroupWrapper recognizes buttons by comparing against the flat one, so a barrel
Button silently loses its input-group styling. The stylesheet path is plural. Import it 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/buttons 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/buttons, and reinstall. See the
Woodland 8.0 upgrade guide for details.