heading

v1.0.2arrow_drop_down
v1.0.2
v1.0.1
v1.0.0
STATUS
Passing
DOWNLOADS
4,706
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
837 B
Base title component, to be styled by composing components.
1 contributor
Install heading as a package?
Copied
npm i @bit/bit.base-ui.text.heading
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
chevron_left
chevron_right
Heading ()

Base title component, to be styled by composing components. May have more logic in the future.

Example
<Heading element="h3">This is a title</Heading>
Properties
NameTypeDefault valueDescription
element
'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6''h1'

underlying html element ("h1", "h2", etc)

Test Summary

should render correct text in Heading

Pass

should render as h1 by default

Pass

should render as h3 when defined

Pass
Help and resources