1.35.0 • Published 8 months ago
@s-ui/react-molecule-notification v1.35.0
MoleculeNotification
Notifications offer users information on the system. The content may confirm that an action has been performed correctly, warn the user of an error or simply give information on certain circumstances.
Installation
$ npm install @s-ui/react-molecule-notification --saveBasic usage
import MoleculeNotification, {BRDS_SIZE} from '@s-ui/react-molecule-notification'
// sui-atom-button
const BUTTONS = [
{
type: 'secondary',
children: 'Secondary',
negative: true
},
{
type: 'primary',
children: 'Primary',
negative: true
}
]
// import named export sizes from component as seen above
BRDS_SIZE = {
extraLarge: 'xl',
large: 'l',
medium: 'm',
small: 's',
extraSmall: 'xs'
}
return (
<MoleculeNotification
type='success'
autoclose='short'
buttons={BUTTONS}
roundedCorners={BRDS_SIZE.medium}
>
<p>Lorem fistrum</p>
</MoleculeNotification>
)Border Radius usage
- Define a
$bdrs-baseSass var value in your vertical theme to get 5 different border radius sizes. Then import theBRDS_SIZEobject to getextraSmall,small,medium,largeandextraLargesizes in declarative way.
Find full description and more examples in the demo page.
1.35.0
8 months ago
1.34.0
3 years ago
1.33.0
3 years ago
1.32.0
3 years ago
1.31.0
4 years ago
1.30.0
4 years ago
1.29.0
4 years ago
1.28.0
4 years ago
1.27.0
4 years ago
1.26.0
4 years ago
1.25.0
5 years ago
1.24.0
5 years ago
1.23.0
5 years ago
1.22.0
5 years ago
1.21.0
5 years ago
1.20.0
5 years ago
1.19.0
5 years ago
1.18.0
6 years ago
1.17.0
6 years ago
1.16.0
6 years ago
1.15.0
6 years ago
1.14.0
6 years ago
1.13.0
6 years ago
1.12.0
6 years ago
1.11.0
7 years ago
1.10.0
7 years ago
1.9.0
7 years ago
1.8.0
7 years ago
2.0.0
7 years ago
1.6.0
7 years ago
1.5.0
7 years ago
1.4.0
7 years ago
1.3.0
7 years ago