ui/Heading
A component for instantiating a section of content with a title.
Loading Live Preview
Loading Live Preview
Members
Section titled “Members ”Heading Component
Section titled “Heading   Component ”A labeled Heading component.
Extends:
ui/Headingui/Heading.HeadingBase
Wrapped with:
ui/Headingui/Heading.HeadingDecorator
Properties
children
Section titled “children”The text for the label of the Heading.
Called with a reference to the root component.
When using ui/Headingui/Heading.Heading, the ref prop is forwarded to this component
as componentRef.
Customizes the component by mapping the supplied collection of CSS class names to the corresponding internal elements and states of this component.
The following classes are supported:
heading- The root component classtitle- Applied whensizeis set to "title"subtitle- Applied whensizeis set to "subtitle"large- Applied whensizeis set to "large"medium- Applied whensizeis set to "medium"small- Applied whensizeis set to "small"tiny- Applied whensizeis set to "tiny"largeSpacing- Applied whenspacingis set to "large"mediumSpacing- Applied whenspacingis set to "medium"smallSpacing- Applied whenspacingis set to "small"noneSpacing- Applied whenspacingis set to "none"
Set the size of this component.
'title'and'subtitle'are generally considered to be used only once on a given screen.'large','medium','small', and'tiny'are typically used as section headings for content on a screen, starting with'large'for the first tier of information followed by'medium'for the next, and so forth.
If the spacing prop is not set (defaulting to "auto"), these values automatically set
the spacing to the correlated names.
The size of the spacing around the Heading.
These have no built-in measurements, as they are intended to be defined by the theme
consuming this UI element. The values correlate with customizable classes made available
by this component's css prop.
Allowed values include:
'auto'(default) - Lets this value be based on thesizeprop for automatic usage.'large'- Specifically assign the'large'spacing.'medium'- Specifically assign the'medium'spacing.'small'- Specifically assign the'small'spacing.'none'- No spacing at all. Neighboring elements will directly touch the Heading.
HeadingBase Component
Section titled “HeadingBase   Component ”A labeled Heading component.
HeadingDecorator Higher-Order Component
Section titled “HeadingDecorator   Higher-Order Component ”A higher-order component that adds behavior to ui/Headingui/Heading.HeadingBase.
Includes:
ui/ForwardRefui/ForwardRef.ForwardRef