@ltht-react/banner
TypeScript icon, indicating that this package has built-in type declarations

2.0.25 • Public • Published

Banner

Import

import Banner from '@ltht-react/banner'

Usage

<Banner type="info">
  This is an info alert with{' '}
  <a href="#" class="alert-link">
    an example link
  </a>
  .
</Banner>

Properties

Prop Required Default Type Description
type No 'info' 'info', 'danger', 'warning' Type of styling for the banner
icon No None ReactNode Custom to render
children No None Element Child elements to render within the banner
...rest No None HTMLAttributes Any additional props supported by an HTML Div Element

Readme

Keywords

none

Package Sidebar

Install

npm i @ltht-react/banner

Weekly Downloads

817

Version

2.0.25

License

MIT

Unpacked Size

19 kB

Total Files

6

Last publish

Collaborators

  • linqing.shangguan
  • alwayshomesolutions
  • airemechak
  • saqib-airelogic
  • sambiram
  • moza806
  • hinchlit
  • ggbusuioc
  • wes-spellman
  • ltht
  • jsed500
  • bl4cksm1th
  • jlsteele
  • pmcvay