@novem-ui/message
TypeScript icon, indicating that this package has built-in type declarations

0.0.2-alpha.5 • Public • Published

@novem-ui/message

Usage

<Message />

The component props are :

  • title (Optional): A string that will be the message title
  • message (Required)
  • onClose (Optional): a function to handle the closing of the message component
  • variant (Required): The style of the message, it can be error or success
  • action (Optional): a JSX.Element that will handle anything you want
  • baseColor (Optional): a prop to override the theme's default color.
import { Message, ThemeProvider } from '@novem-ui/core'
// or
import { Message } from '@novem-ui/message'
import { ThemeProvider } from '@novem-ui/theme'

function App() {
  return (
    <ThemeProvider>
      <Message message="a message"/>
    </ThemeProvider>
  )
}

Readme

Keywords

none

Package Sidebar

Install

npm i @novem-ui/message

Weekly Downloads

0

Version

0.0.2-alpha.5

License

ISC

Unpacked Size

35.6 kB

Total Files

18

Last publish

Collaborators

  • leonelv