mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
27 lines
681 B
Vue
27 lines
681 B
Vue
<script setup lang="ts">
|
|
const appConfig = useAppConfig()
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<UFormField
|
|
label="toaster.duration"
|
|
size="sm"
|
|
class="inline-flex ring ring-gray-300 dark:ring-gray-700 rounded"
|
|
:ui="{
|
|
wrapper: 'bg-gray-50 dark:bg-gray-800/50 rounded-l flex border-r border-gray-300 dark:border-gray-700',
|
|
label: 'text-gray-500 dark:text-gray-400 px-2 py-1.5',
|
|
container: 'mt-0'
|
|
}"
|
|
>
|
|
<UInput
|
|
v-model="appConfig.toaster.duration"
|
|
color="gray"
|
|
variant="soft"
|
|
class="rounded rounded-l-none min-w-12"
|
|
:search-input="false"
|
|
/>
|
|
</UFormField>
|
|
</div>
|
|
</template>
|