heading
v1.0.2arrow_drop_downv1.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
Like
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
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
modifieddraft
chevron_left
chevron_right
Heading ()
Base title component, to be styled by composing components. May have more logic in the future.
Example
Properties
Name | Type | Default value | Description |
---|---|---|---|
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 |