Skip to content

Commit

Permalink
feat: added UFormGroup component
Browse files Browse the repository at this point in the history
  • Loading branch information
YannicEl committed Jan 2, 2024
1 parent 7c6dde5 commit 5af1089
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/lib/src/components/UFormGroup.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<template>
<slot />
</template>

<script setup lang="ts">
import { provideForm } from '../composables/useFormInject';
import type { Form } from '../useForm';
const { form } = defineProps<{
form: Form;
}>();
provideForm(form);
</script>
1 change: 1 addition & 0 deletions packages/lib/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { default as UField } from './UField.vue';
export { default as UForm } from './UForm.vue';
export { default as UFormGroup } from './UFormGroup.vue';

0 comments on commit 5af1089

Please sign in to comment.