1.0.7 • Published 2 years ago

@craydel-v3/craydel-alert v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

CraydelAlert

Installation

Get the latest version by NPM:

$ npm i @craydel-v3/craydel-alert

Component Import

Import the module chosen directly in your component

<script>
  import CraydelAlert from "@craydel-v3/craydel-alert/src/CraydelAlert.vue";

  export default {
    components: {CraydelAlert}
  }
</script>

Props

NameTypeDefaultDescription
show-alertbooleanfalseControls whether the component is visible or hidden.
type'success' | 'info' | 'warning' | 'error'undefinedCreate a specialized alert that uses a contextual color and has a pre-defined icon.
not-closablebooleanfalseRemoves the close icon that can hide the alert. By default the alert shows a close icon.

Events

NameDescription
closeEvent that is emitted when the component is closed.

Usage

An example showing a red error alert without the close icon.

<craydel-alert show-alert type="error" not-closable>
  This is an error message
</craydel-alert>
1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago