@spark-web/heading
Version:
--- title: Heading storybookPath: typography-heading--default isExperimentalPackage: false ---
14 lines (13 loc) • 572 B
TypeScript
import type { ForegroundTone } from '@spark-web/text';
import type { BrighteTheme } from '@spark-web/theme';
declare type HeadingLevel = keyof BrighteTheme['typography']['heading']['level'];
export declare type UseHeadingProps = {
/** The horizontal alignment. */
align?: 'left' | 'center' | 'right';
/** The heading level. */
level: HeadingLevel;
/** The tone of the text. */
tone?: ForegroundTone;
};
export declare function useHeading({ align, level, tone, }: UseHeadingProps): (import("@emotion/serialize").CSSObject | undefined)[];
export {};