@o-rango/o-alert
Provides feedback messages for user actions with alert messages.
Demo
Get Started
First, npm install within the project or use it directly from CDN:
npm install @o-rango/o-alert --save
or
<script src="./node_modules/@o-rango/o-alert/dist/o-alert.js"></script>
// OR
<script src="https://unpkg.com/@o-rango/o-alert/dist/o-alert.js"></script>
Usage example
Default Alert
// Default Alert
<o-alert align="center" type="default">This is an default alert banner !!!!</o-alert>
// Success Alert aligned left
<o-alert align="left" type="success">This is an success alert banner</o-alert>
// Alert using slots
<o-alert type="error" align="center">
<div slot="start"> Start</div>
This is an error alert banner
<div slot="end">X</div>
</o-alert>
Alert with Line
// Success Alert aligned left
<o-alert line align="left" type="success">This is an success alert banner</o-alert>
// Alert using slots
<o-alert line type="error" align="center">
<div slot="start"> Start</div>
This is an error alert banner
<div slot="end">X</div>
</o-alert>
Properties
@Prop() name?: string;
@Prop() align: string = 'center'
@Prop() type: string = 'default'
@Prop() line: boolean= false;
Customization
--o-alert-default: #FAFBFC;
--o-alert-error : #DE350B;
--o-alert-warning:#FFC400;
--o-alert-info: #0065FF;
--o-alert-success:#36B37E;
--o-alert-height : 3.5em;
--o-alert-font-size :14px;
--o-alert-font-weight : 600;
--o-alert-font-family : 'San Francisco', -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', 'Helvetica Neue', Helvetica, sans-serif;
--o-alert-font-color-light : #FFFFFF;
--o-alert-font-color-dark : #091E42;