Skip to content

Heading

Heading is a styled typographic component for displaying headings of various levels on a page.

See all the examples and details in the Storybook.

Usage

tsx
import { Heading } from "@samgl/graffiti-ui";

const MyHeading = () => {
  return <Heading $level={1}>Heading 1</Heading>;
};

Props

PropTypeDefaultOptionalDescription
$levelnumberThe heading level.
childrenReactNodeThe content of the heading.
classNamestringThe class name of the component, generally used when extending the component with a styled component.