@sps-woodland/modal
v8.53.30
Published
SPS Woodland Design System modal component
Keywords
Readme
@sps-woodland/modal
SPS Woodland Design System useModal hook and modal component.
Heads up — this is a wrapper package. The component source now lives in
@sps-woodland/core. This package re-exports from core so existing imports keep working, but new code should prefer the core paths.
Preferred imports (core)
import { Modal, ModalFooter, useModal } from "@sps-woodland/core/modal";
// or, if you only need the footer:
import { ModalFooter } from "@sps-woodland/core/modal-footer";
import "@sps-woodland/core/modal/style.css";Modal itself is barrel-only (because the family name and the parent
component share a name). ModalFooter also has its own flat subpath.
Legacy imports (still supported)
import { Modal, ModalFooter, useModal } from "@sps-woodland/modal";
import "@sps-woodland/modal/style.css";