@theme-ui/components
Version:
Primitive layout, typographic, and other components for use with Theme UI.
14 lines (13 loc) • 546 B
TypeScript
import React from 'react';
import { BoxOwnProps } from "./Box.js";
import type { Assign, ForwardRef } from "./types.js";
export interface HeadingProps extends Assign<React.ComponentPropsWithRef<'h2'>, BoxOwnProps> {
}
/**
* Primitive heading component, defaults to <h2>.
*
* Text style variants can be defined in the theme.text object.
* The Heading component uses theme.text.heading as its default variant style.
* @see https://theme-ui.com/components/heading
*/
export declare const Heading: ForwardRef<HTMLHeadingElement, HeadingProps>;