This commit is contained in:
2026-05-14 07:09:52 +06:00
parent edef0a70d2
commit abf4d41c23
18 changed files with 350 additions and 41 deletions

View File

@@ -7,11 +7,14 @@
:type="type"
:data-full="full || undefined"
>
<slot />
<ChadSpinner v-if="loading" class="chad-button__spinner" />
<slot v-else />
</button>
</template>
<script setup lang="ts">
import ChadSpinner from '@shared/components/ui/Spinner.vue'
defineOptions({
name: 'ChadButton',
})
@@ -61,7 +64,6 @@ interface Props {
}
&[data-disabled],
&[data-loading],
&:disabled {
cursor: not-allowed;
background-color: var(--grey-1);
@@ -69,6 +71,7 @@ interface Props {
}
&[data-loading] {
background-color: var(--grey-1);
cursor: wait;
}
}