feat(Toast): new component (#50)

This commit is contained in:
Benjamin Canac
2024-04-10 18:22:09 +02:00
committed by GitHub
parent 90f18a3505
commit 3da1e1a518
13 changed files with 566 additions and 12 deletions

View File

@@ -7,6 +7,8 @@ useHead({
}
})
const appConfig = useAppConfig()
const components = [
'accordion',
'avatar',
@@ -31,6 +33,7 @@ const components = [
'switch',
'tabs',
'textarea',
'toast',
'tooltip'
]
@@ -40,7 +43,7 @@ function upperName (name: string) {
</script>
<template>
<UApp>
<UApp :toaster="appConfig.toaster">
<div class="min-h-screen w-screen flex flex-col items-center justify-center overflow-y-auto">
<UNavigationMenu :links="components.map(component => ({ label: upperName(component), to: `/${component}` }))" class="border-b border-gray-200 dark:border-gray-800 overflow-x-auto px-2" />