diff --git a/src/forms/NewFormikNumberField.stories.tsx b/src/forms/NewFormikNumberField.stories.tsx index 6729c17..c31a85b 100644 --- a/src/forms/NewFormikNumberField.stories.tsx +++ b/src/forms/NewFormikNumberField.stories.tsx @@ -25,7 +25,7 @@ export const Default = () => ( name="name" label="Label" tooltip="Tooltip for this input" - className={{ root: 'mb-1' }} + className={{ root: 'mb-1 w-80' }} placeholder="Placeholder" /> diff --git a/src/forms/NewFormikNumberField.tsx b/src/forms/NewFormikNumberField.tsx index 718d5a3..f6666bc 100644 --- a/src/forms/NewFormikNumberField.tsx +++ b/src/forms/NewFormikNumberField.tsx @@ -87,7 +87,7 @@ export function FormikNumberField({ if (name) { return ( -
+
+
( name="name" label="Label" tooltip="Tooltip for this input" - className={{ root: 'mb-1' }} + className={{ root: 'mb-1 w-80' }} placeholder="Placeholder" /> diff --git a/src/forms/NewFormikTextField.tsx b/src/forms/NewFormikTextField.tsx index cc22341..7011f88 100644 --- a/src/forms/NewFormikTextField.tsx +++ b/src/forms/NewFormikTextField.tsx @@ -91,7 +91,7 @@ export function FormikTextField({ if (name) { return ( -
+
+
( name="name" label="Label" tooltip="Tooltip for this input" - className={{ root: 'mb-1' }} + className={{ root: 'mb-1 w-96' }} placeholder="Placeholder" /> diff --git a/src/forms/NumberField.stories.tsx b/src/forms/NumberField.stories.tsx index 0ee0e22..3daac25 100644 --- a/src/forms/NumberField.stories.tsx +++ b/src/forms/NumberField.stories.tsx @@ -10,7 +10,11 @@ export function Default() { precision (negative and positive) and its value is maintained as a string.
- setValue(newValue)} /> + setValue(newValue)} + className={{ field: 'w-80' }} + />
Value: {value}
) diff --git a/src/forms/NumberField.tsx b/src/forms/NumberField.tsx index 2119812..d9ecc98 100644 --- a/src/forms/NumberField.tsx +++ b/src/forms/NumberField.tsx @@ -116,7 +116,7 @@ export function NumberField({ /> )} -
+
{ )} -
-
+
+
{name && field ? ( { placeholder="Placeholder" value={value} onChange={setValue} + className={{ root: 'w-[30rem]' }} />
) diff --git a/src/forms/TextareaField.tsx b/src/forms/TextareaField.tsx index 52ca247..245f07e 100644 --- a/src/forms/TextareaField.tsx +++ b/src/forms/TextareaField.tsx @@ -74,7 +74,6 @@ export interface TextareaFieldOnChangeProps extends TextareaFieldProps { * @param className - The optional className object allows you to override the default styling. * @returns Text field component with optional label, tooltip, error message and icon. */ - export function TextareaField({ id, data, @@ -98,7 +97,7 @@ export function TextareaField({ ...props }: TextareaFieldNameProps | TextareaFieldOnChangeProps) { return ( -
+