Files
716d43a9a8 Nuxt 3 migration (#4342)
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>
2026-01-22 10:27:19 +01:00

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>