Banner
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
Description | The position of the banner on the screen |
---|---|
Type | centered | topRight | bottomRight | topLeft | bottomLeft | |
Default | centered |
size
Description | The size of the banner text |
---|---|
Type | sm | md | lg | undefined |
Default | md |