README
Alert
Install
$ npm install @poetadigital/alert --save
Usage
<template>
<div class="app">
<PAlert
:message="'Error messages'"
:customClass="'custom-class'"
:customIconStyle="iconStyle"
:customTextStyle="textStyle"
>
/* Icon alert SVG */
<IconAlertError />
</PAlert>
</div>
</template>
<script>
import PAlert from "./components/PAlert";
export default {
components: { PAlert }
};
</script>
<style></style>
Props
Name | Required | Default | Type | Description |
---|---|---|---|---|
message | N | - | String | Alert message |
:customStyle | N | - | Object | A custom style object to override the base styles. |
:customIconStyle | N | - | Object | A custom icon style object to override the base icon styles. |
:customTextStyle | N | - | Object | A custom text style object to override the base text styles. |
:customClass | N | - | String | A custom class to override the base classes. |
:customIconClass | N | - | String | A custom icon class object to override the base icon classes. |
:customTextClass | N | - | String | A custom text class object to override the base text classes. |
Development
- [] Vari
License
MIT © Poeta Digital