onecart-ui
Version:
Cross-platform React and React Native component library with white-label support
24 lines • 647 B
TypeScript
import { TypographyProps } from "./Typography";
/**
* Heading levels corresponding to HTML heading elements
*/
export type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
/**
* Heading component props
*/
export interface HeadingProps extends Omit<TypographyProps, "variant"> {
/**
* The heading level
* @default 'h2'
*/
level?: HeadingLevel;
/**
* Optional subtitle to display below the heading
*/
subtitle?: React.ReactNode;
/**
* Props to pass to the subtitle Typography component
*/
subtitleProps?: Omit<TypographyProps, "children">;
}
//# sourceMappingURL=Heading.d.ts.map