mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
Update the nuxt3 version. Co-authored-by: Jonathan Adeline <jonathan@baserow.io> Co-authored-by: Bram Wiepjes <bramw@protonmail.com> Co-authored-by: Cezary <cezary@baserow.io> Co-authored-by: Tsering Paljor <tsering@baserow.io> Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io> Co-authored-by: Bram <bram2w@users.noreply.github.com>
40 lines
739 B
Vue
40 lines
739 B
Vue
<template>
|
|
<i
|
|
class="icon"
|
|
:class="[icon, `icon--${type}`, `icon--${size}`]"
|
|
v-bind="$attrs"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
icon: { type: String, required: true },
|
|
/**
|
|
* The type of alert to display
|
|
*/
|
|
type: {
|
|
required: false,
|
|
type: String,
|
|
default: 'primary',
|
|
validator: function (value) {
|
|
return ['primary', 'secondary', 'warning', 'error', 'success'].includes(
|
|
value
|
|
)
|
|
},
|
|
},
|
|
/**
|
|
* The size
|
|
*/
|
|
size: {
|
|
type: String,
|
|
required: false,
|
|
default: 'medium',
|
|
validator(value) {
|
|
return ['small', 'medium', 'large', 'x-large'].includes(value)
|
|
},
|
|
},
|
|
},
|
|
}
|
|
</script>
|