From 2b70c89962a18f33995fcca762fed73fd5ce8f28 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Fri, 1 Apr 2022 22:46:07 +0200
Subject: chore: add labelled field component

---
 src/components/atoms/forms/field.tsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'src/components/atoms/forms/field.tsx')

diff --git a/src/components/atoms/forms/field.tsx b/src/components/atoms/forms/field.tsx
index 7d1ac93..513d2ba 100644
--- a/src/components/atoms/forms/field.tsx
+++ b/src/components/atoms/forms/field.tsx
@@ -1,7 +1,7 @@
 import { ChangeEvent, FC, SetStateAction } from 'react';
 import styles from './forms.module.scss';
 
-type FieldType =
+export type FieldType =
   | 'datetime-local'
   | 'email'
   | 'number'
@@ -12,7 +12,7 @@ type FieldType =
   | 'time'
   | 'url';
 
-type FieldProps = {
+export type FieldProps = {
   /**
    * Field state. Either enabled (false) or disabled (true).
    */
@@ -20,7 +20,7 @@ type FieldProps = {
   /**
    * Field id attribute.
    */
-  id?: string;
+  id: string;
   /**
    * Field maximum value.
    */
@@ -32,7 +32,7 @@ type FieldProps = {
   /**
    * Field name attribute.
    */
-  name?: string;
+  name: string;
   /**
    * Placeholder value.
    */
-- 
cgit v1.2.3

