@novem-ui/message
v0.0.2-alpha.5
Published
Message component from novem-ui
Downloads
6
Readme
@novem-ui/message
Usage
<Message />
The component props are :
title
(Optional): A string that will be the message titlemessage
(Required)onClose
(Optional): a function to handle the closing of the message componentvariant
(Required): The style of the message, it can beerror
orsuccess
action
(Optional): a JSX.Element that will handle anything you wantbaseColor
(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>
)
}