diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-04-01 22:57:12 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-04-01 22:58:23 +0200 |
| commit | 21eb67ef5e59d36b996392f60b5045f152a64604 (patch) | |
| tree | 025af06ff87b7103bf7633ed5e0aa1e92a5ac3fd /src/components/atoms/forms/select.tsx | |
| parent | 2b70c89962a18f33995fcca762fed73fd5ce8f28 (diff) | |
chore: add a labelled select field component
Diffstat (limited to 'src/components/atoms/forms/select.tsx')
| -rw-r--r-- | src/components/atoms/forms/select.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/atoms/forms/select.tsx b/src/components/atoms/forms/select.tsx index 6e46660..e434a82 100644 --- a/src/components/atoms/forms/select.tsx +++ b/src/components/atoms/forms/select.tsx @@ -7,7 +7,7 @@ type SelectOptions = { value: string; }; -type SelectProps = { +export type SelectProps = { /** * Field state. Either enabled (false) or disabled (true). */ @@ -15,11 +15,11 @@ type SelectProps = { /** * Field id attribute. */ - id?: string; + id: string; /** * Field name attribute. */ - name?: string; + name: string; /** * True if the field is required. Default: false. */ |
