-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(form-field): implement component
- Loading branch information
1 parent
0fc9082
commit 1b7940c
Showing
12 changed files
with
371 additions
and
44 deletions.
There are no files selected for viewing
9 changes: 7 additions & 2 deletions
9
packages/ods/react/tests/_app/src/components/ods-form-field.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
packages/ods/src/components/form-field/src/components/ods-form-field/ods-form-field.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 9 additions & 2 deletions
11
packages/ods/vue/tests/_app/src/components/ods-form-field.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
<template> | ||
<OdsFormField /> | ||
<OdsFormField> | ||
<OdsText slot="label" preset='label'>Description</OdsText> | ||
<OdsText slot="visual-hint" preset='caption'>02/11/1999</OdsText> | ||
<OdsInput name='input' /> | ||
<OdsText slot="helper" preset='span'>A little helper text</OdsText> | ||
</OdsFormField> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue'; | ||
import { OdsFormField } from '@ovhcloud/ods-components/vue'; | ||
import { OdsFormField, OdsInput, OdsText } from '@ovhcloud/ods-components/vue'; | ||
export default defineComponent({ | ||
name: 'FormField', | ||
components: { | ||
OdsFormField, | ||
OdsInput, | ||
OdsText | ||
}, | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.