@vue-formify/radix-vue
v0.0.34
Published
Radix Vue components integration for vue-formify
Downloads
4
Maintainers
Readme
📦 Install
npm i @vue-formify/radix-vue
💻 Usage
You only need to import the root components from this package. Any other part of the components need to be imported from radix-vue
.
<script lang="ts" setup>
import { SwitchRoot } from '@vue-formify/ionic-vue';
import { SwitchThumb } from 'radix-vue'
const send = (data: any) => {
console.log(data);
};
</script>
<template>
<FormifyForm @submit="send">
<SwitchRoot
id="airplane-mode"
name="airplane"
class="SwitchRoot">
<SwitchThumb class="SwitchThumb"/>
</SwitchRoot>
<button>Send</button>
</FormifyForm>
</template>
Available components
- CheckboxRoot
- ComboboxRoot
- PinInputRoot
- RadioGroupRoot
- SelectRoot
- SwitchRoot
- TagsInputRoot
- Toggle