@cairnkit/ui
v0.12.4
Published
Prebuilt cairnkit overlay: spotlight, step card and launcher. Plain CSS, light and dark.
Maintainers
Readme
@cairnkit/ui
The prebuilt cairnkit overlay: spotlight, tooltip step card, and a positionable launcher. Plain CSS, light and dark from the start.
npm i @cairnkit/core @cairnkit/react @cairnkit/uiimport { CairnOverlay, TourLauncher } from "@cairnkit/ui";
import "@cairnkit/ui/styles.css";
<CairnOverlay />
<TourLauncher flowId="invite-candidate" position="bottom-left" />Brand it in one line
:root {
--cairn-accent: #f75c03;
--cairn-accent-rgb: 247 92 3;
}Typography inherits from your app deliberately — an overlay should not look like a widget bolted onto your product.
Works inside modals
When a step points at a control inside a dialog, the overlay portals into
that dialog rather than onto body, so it inherits the stacking context,
stays interactive when the rest of the page is marked inert, and remains
reachable inside a focus trap.
Full documentation: cairnkit.dev
MIT
