HeadlineA typographic component for displaying headings with different sizes and alignments.
Install the component from your command line.
Import all parts and piece them together.
The Headline component accepts the following props:
Large Headline (32px)
Medium Headline (28px)
Small Headline (24px)
npm install @raystack/apsara
import { Headline } from '@raystack/apsara/v1' <Headline size="large" as="h1"> Large Headline </Headline> <Headline size="medium">Medium Headline</Headline> <Headline size="small" as="h3"> Small Headline </Headline>
size
:"small" | "medium" | "large"
- Controls the size of the headline (default: "small")- small: 24px
- medium: 28px
- large: 32px
as
:"h1" | "h2" | "h3" | "h4" | "h5" | "h6"
- HTML heading element to render (default: "h2")align
:"left" | "center" | "right"
- Text alignment (default: "left")truncate
:boolean
- Enable text truncation with ellipsisaria-label
:string
- Accessible label for the headlineclassName
:string
- Additional CSS class names
loading...
loading...
loading...