yarn add @twilio-paste/display-heading - or - yarn add @twilio-paste/core
import {DisplayHeading} from '@twilio-paste/core/display-heading';
const Component = () => (
<DisplayHeading as="h2" variant="displayHeading20">
Display Heading
</DisplayHeading>
);
as RequiredRequired
HTML element to render, e.g., h1
, h2
, etc.
- Type
AsTags
variant RequiredRequired
The variant of the display heading
- Type
DisplayHeadingVariants
display
CSS display property
- Type
any
- Default
'block'
element
Overrides the default element name to apply unique styles with the Customization Provider
- Type
any
- Default
'DISPLAY_HEADING'
id
- Type
string
marginBottom
Currently we only allow space0 to remove bottom margin
- Type
"space0"
Inherited props
Paste components will often extend native HTML elements and as a result will inherit or extend their available properties. Below is a list of the props this component has inherited and are also available to use.