mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-20 06:51:46 +01:00
feat(Checkbox): new component (#67)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
import { computed } from 'vue'
|
||||
import { useAppConfig } from '#app'
|
||||
import type { IconProps } from '#ui/components/Icon.vue'
|
||||
|
||||
export interface UseComponentIconsProps {
|
||||
icon?: string
|
||||
icon?: IconProps['name']
|
||||
leading?: boolean
|
||||
leadingIcon?: string
|
||||
leadingIcon?: IconProps['name']
|
||||
trailing?: boolean
|
||||
trailingIcon?: string
|
||||
trailingIcon?: IconProps['name']
|
||||
loading?: boolean
|
||||
loadingIcon?: string
|
||||
loadingIcon?: IconProps['name']
|
||||
}
|
||||
|
||||
export function useComponentIcons (props: UseComponentIconsProps) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { inject, ref, computed } from 'vue'
|
||||
import { type UseEventBusReturn, useDebounceFn } from '@vueuse/core'
|
||||
import type { FormEvent, FormInputEvents, FormFieldInjectedOptions, FormInjectedOptions } from '../types/form'
|
||||
import type { FormEvent, FormInputEvents, FormFieldInjectedOptions, FormInjectedOptions } from '#ui/types/form'
|
||||
|
||||
type Props<T> = {
|
||||
id?: string
|
||||
|
||||
Reference in New Issue
Block a user