UNPKG

@stratakit/bricks

Version:

Small, modular components for StrataKit

23 lines (22 loc) 914 B
import * as React from "react"; interface GhostAlignerProps { /** The direction in which the ghost control should be aligned (using negative margin). */ align: "block" | "block-start" | "block-end" | "inline" | "inline-start" | "inline-end" | undefined; } /** * A context provider that helps with visual alignment of ghost controls. * @private */ export declare function GhostAligner(props: React.PropsWithChildren<GhostAlignerProps>): import("react/jsx-runtime").JSX.Element; /** * Returns the value of the nearest `GhostAligner`. * * This should be used together with the CSS API: * - `🥝-ghost-aligner` class. * - `data-kiwi-ghost-align` attribute. * - `--🥝ghost-block-offset` and `--🥝ghost-inline-offset` variables. * * @private */ export declare function useGhostAlignment(): "inline" | "block" | "block-start" | "block-end" | "inline-start" | "inline-end" | undefined; export {};