Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 785 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 785 Bytes

@axa-fr/react-toolkit-title

Default

Installation

npm i @axa-fr/react-toolkit-title

Import

import Title from '@axa-fr/react-toolkit-title';
import '@axa-fr/react-toolkit-title/dist/af-title.css';

Use

const TitleDefault = () => (
  <Title classModifier="" className="">
    Sample Title
  </Title>
);
export default TitleDefault;

By default, using this component produces a level 2 title (level 1 is restricted to the title bar of the page). If you want another title level you can specify the heading property with the value h2, h3, h4. For now h5 and h6 are not supported.

const TitleDefault = () => <Title heading="h3">Sample Title</Title>;
export default TitleDefault;