Heading
Heading
Use the Heading
component to give users scannable titles on your interface. A user should be able to understand what a page is for just by reading the headings. This components extends the Text component to provide default heading styles for H1-H6.
Import component
import { Heading } from 'rimble-ui';
Examples
Different ways to use the Heading
component.
h1
Use for page or screen titles.
Transactions
h2
Use for headings that are sub-sections of the h1 heading.
Latest transaction
h3
Use for headings that are sub-sections of an h2 heading.
Successful transactions
h4
Use for headings that are sub-sections of any h3 headings.
Transaction fees
h5
Use for headings that are sub-sections of any h4 headings.
Transaction fees explained
h6
Use for headings that are sub-sections of any h5 headings.
How are transaction fees calculated?
Props
as
'h2'
fontSize
''
Styled System Props
Heading
uses COMMON
, TYPOGRAPHY
groups of Styled System props.
Design guidelines
Some best practices for using Heading
in your product.
- Only use one
h1
per page - Headings should explain the content below
- Keep headings short for scannability
- Headings should appear at the top of the section of the interface they're introducing
Content
Some best practices for writing Heading
components.
Avoid articles to keep headings succinct
Add wallet
Add a wallet
Front load headings
Withdraw ETH?
Are you sure?
Related components
- Text – For regular text where you can control font size, weight, alignment, and color.