UNPKG

@stratakit/bricks

Version:

Small, modular components for StrataKit

14 lines (13 loc) 402 B
import { jsx } from "react/jsx-runtime"; import * as React from "react"; const GhostAlignerContext = React.createContext(void 0); function GhostAligner(props) { return /* @__PURE__ */ jsx(GhostAlignerContext.Provider, { value: props.align, children: props.children }); } function useGhostAlignment() { return React.useContext(GhostAlignerContext); } export { GhostAligner, useGhostAlignment };