0.7.2

Headline

Source code
Default

Services

Why choose Astro

Each of the following features enhances Astro's value proposition.

Usage

---
import { Headline } from '@yatoday/astro-ui/astro';
---

<!-- Default -->
<Headline title="Why choose Astro" />

<!-- With all props -->
<Headline
  title="Why choose Astro"
  subtitle="Each of the following features enhances Astro's value proposition."
  tagline="Services"
  classes={{
    container: 'text-left',
    title: 'text-xl md:text-5xl',
    subtitle: 'text-red-500',
    tagline: 'text-sm',
  }}
/>

Props

PropTypeDefaultDescription
asstringh2HTML tag name for the wrapper
titlestring--
subtitlestring--
taglinestring--
positioncenter | left | rightcenter-
classes.containerstring-CSS classes for the wrapper container
classes.titlestring-CSS classes for the title
classes.subtitlestring-CSS classes for the subtitle
classes.taglinestring-CSS classes for the tagline