Jumbotron
Hero section component with eyebrow, title, description, actions and media. Plain, card, gradient and background image styles.
How to use it
Run npx @blossomui/react add jumbotron, or copy src/components/UI/Jumbotron/Jumbotron.tsx into your React project and import it.
import { Jumbotron } from './components/ui/Jumbotron'Props
JumbotronProps
| Prop | Type | Description |
|---|---|---|
| color | string | Accent color of this component: any CSS color. Without it the component uses `--blossom-accent`, which is pink by default. |
| title (required) | string | |
| description | string | |
| eyebrow | ReactNode | Small text or badge shown above the title. |
| actions | ReactNode | Buttons or links shown under the text. |
| media | ReactNode | Extra content such as an image or a mockup. With `align="left"` it is shown beside the text. |
| align | 'center' | 'left' | |
| variant | 'plain' | 'card' | 'gradient' | 'image' | `plain` has no background, `card` adds a border, `gradient` a soft color and `image` uses `backgroundImage` behind the text. / |
| backgroundImage | string | Url of the image used by the `image` variant. |