Skip to content

Banner

GitHub

A component that displays a banner with customizable position and size.

Installation

npm
npx maiton add Banner

Usage

import { Banner } from "../components/Banner";
<Banner>Banner</Banner>

Props

The Banner component extends div, so you can pass all standard div props.

position

DescriptionThe position of the banner on the screen
Typecentered | topRight | bottomRight | topLeft | bottomLeft |
Defaultcentered

size

DescriptionThe size of the banner text
Typesm | md | lg | undefined
Defaultmd