@axa-fr/react-toolkit-title
TypeScript icon, indicating that this package has built-in type declarations

2.3.1 • Public • Published

@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;

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

33

Version

2.3.1

License

MIT

Unpacked Size

18.4 kB

Total Files

25

Last publish

Collaborators

  • martinweb
  • fcornaire
  • guillaume.chervet.axa
  • samuel-gomez
  • antoine.blancke
  • arnaudforaison