UNPKG

@spark-web/heading

Version:

--- title: Heading storybookPath: typography-heading--default isExperimentalPackage: false ---

14 lines (13 loc) 552 B
import type { ForegroundTone } from '@spark-web/text'; import type { SparkTheme } from '@spark-web/theme'; type HeadingLevel = keyof SparkTheme['typography']['heading']['level']; export 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 {};