UNPKG

@theme-ui/components

Version:

Primitive layout, typographic, and other components for use with Theme UI.

14 lines (13 loc) 540 B
import React from 'react'; import { BoxOwnProps } from './Box'; import type { Assign, ForwardRef } from './types'; 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>;