A consistent heading component for your application.
Flux offers three different heading sizes that should cover most use cases in your app.
Control the heading level: h1, h2, h3, that will be used for the heading element. Without a level prop, the heading will default to a div.
Subheadings can be placed above headings for a more interesting arrangment.
Prop
|
Description
|
---|---|
size |
Size of the heading. Options: base, lg, xl. Default: base.
|
level |
HTML heading level. Options: 1, 2, 3, 4. Default: renders as a div if not specified.
|
accent |
If true, applies accent color styling to the heading.
|