Skip to content

Commit

Permalink
feat(@clayui/form): add regular size to input
Browse files Browse the repository at this point in the history
  • Loading branch information
matuzalemsteles committed Apr 17, 2024
1 parent df615c4 commit 53a62b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/clay-form/src/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ interface IProps extends React.InputHTMLAttributes<HTMLInputElement> {
/**
* Selects the height of the input.
*/
sizing?: 'lg' | 'sm';
sizing?: 'lg' | 'regular' | 'sm';
}

const ClayInput = React.forwardRef<HTMLInputElement, IProps>(
Expand All @@ -184,7 +184,7 @@ const ClayInput = React.forwardRef<HTMLInputElement, IProps>(
component: Component = 'input',
insetAfter,
insetBefore,
sizing,
sizing = 'regular',
type = 'text',
...otherProps
}: IProps,
Expand All @@ -193,7 +193,7 @@ const ClayInput = React.forwardRef<HTMLInputElement, IProps>(
<Component
{...otherProps}
className={classNames('form-control', className, {
[`form-control-${sizing}`]: sizing,
[`form-control-${sizing}`]: sizing && sizing !== 'regular',
['input-group-inset']: insetAfter || insetBefore,
['input-group-inset-after']: insetAfter,
['input-group-inset-before']: insetBefore,
Expand Down

0 comments on commit 53a62b1

Please sign in to comment.