@tdcerhverv/heading
TypeScript icon, indicating that this package has built-in type declarations

2.5.1 • Public • Published

Heading component

Includes styling for all standard headings h1 through h5, as well as styles that match the size of their respective heading.

State

Usage

Import like this:

import { H1 } from '@tdcerhverv/heading';

Use like this:

<H1>Everything is awesome!</H1>

Supported headings: H1, H2, H3, H4 and H5.

Props

export interface THeading extends HTMLAttributes<HTMLHeadingElement> {
  children?: ReactNode;
  weight?: 'thin' | 'regular' | 'strong';
  align?: 'left' | 'center' | 'right' | 'justify';
  uppercase?: boolean;
  lightColored?: boolean;
  looksLikeHeading?: number;
  className?: string;
}

Tags

heading, headline

Readme

Keywords

none

Package Sidebar

Install

npm i @tdcerhverv/heading

Weekly Downloads

3

Version

2.5.1

License

Apache-2.0

Unpacked Size

50 kB

Total Files

20

Last publish

Collaborators

  • antongb
  • dev_jonas
  • jeppebenjaminsen
  • ahhah
  • abdok
  • mikkv
  • clausr1990
  • tdc-sigbe
  • mdige
  • nuudaybot
  • tdc-olila
  • jeroen.dk.nl
  • renand
  • stegr
  • m84100
  • m92212
  • m87979
  • vertic
  • rasladev
  • muddz
  • tajsonik
  • linnt
  • molg