@stratakit/bricks
Version:
Small, modular components for StrataKit
23 lines (22 loc) • 925 B
TypeScript
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:
* - `🥝GhostAligner` class.
* - `data-_sk-ghost-align` attribute.
* - `--🥝GhostAligner-block-offset` and `--🥝GhostAligner-inline-offset` variables.
*
* @private
*/
export declare function useGhostAlignment(): "inline" | "block" | "block-start" | "block-end" | "inline-start" | "inline-end" | undefined;
export {};