2.5.1 • Published 3 years ago
@tdcerhverv/heading v2.5.1
Heading component
Includes styling for all standard headings h1
through h5
, as well as styles that match the size of their respective heading.
State
- Test coverage: --%
- Known bugs: --
- Storybook: https://storybook.knet.lqd.dk/?path=/story/heading--all-props
- Zeroheight: --
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
2.5.1
3 years ago
2.5.0
3 years ago
2.4.0
3 years ago
2.3.0
4 years ago
2.2.1
4 years ago
2.2.0
4 years ago
2.1.1
4 years ago
2.1.0
4 years ago
2.0.5
4 years ago
2.0.4
4 years ago
2.0.3
4 years ago
2.0.2
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
5 years ago
1.0.0
5 years ago