mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 07:21:46 +01:00
feat(RadioGroup): handle horizontal orientation (#74)
This commit is contained in:
@@ -43,7 +43,7 @@ import { RadioGroupRoot, RadioGroupItem, RadioGroupIndicator, Label, useForwardP
|
||||
import { reactivePick } from '@vueuse/core'
|
||||
import { useId, useFormField } from '#imports'
|
||||
|
||||
const props = defineProps<RadioGroupProps<T>>()
|
||||
const props = withDefaults(defineProps<RadioGroupProps<T>>(), { orientation: 'vertical' })
|
||||
const emits = defineEmits<RadioGroupEmits>()
|
||||
defineSlots<RadioGroupSlots<T>>()
|
||||
|
||||
@@ -56,7 +56,8 @@ const ui = computed(() => tv({ extend: radioGroup, slots: props.ui })({
|
||||
size: size.value,
|
||||
color: color.value,
|
||||
disabled: disabled.value,
|
||||
required: props.required
|
||||
required: props.required,
|
||||
orientation: props.orientation
|
||||
}))
|
||||
|
||||
function normalizeOption(option: any) {
|
||||
|
||||
Reference in New Issue
Block a user