Skip to content

Commit

Permalink
feat(Fieldset): ✨ Add large size
Browse files Browse the repository at this point in the history
  • Loading branch information
mimarz committed Sep 21, 2023
1 parent 9742abf commit 92f541f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/components/form/Fieldset/Fieldset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type FieldsetContextType = {
errorId?: string;
disabled?: boolean;
readOnly?: boolean;
size?: 'xsmall' | 'small' | 'medium';
size?: 'xsmall' | 'small' | 'medium' | 'large';
};

export const FieldsetContext = createContext<FieldsetContextType | null>(null);
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/form/useFormField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type FormFieldProps = {
/** Toggle `readOnly` */
readOnly?: boolean;
/** Changes field size and paddings */
size?: 'xsmall' | 'small' | 'medium';
size?: 'xsmall' | 'small' | 'medium' | 'large';
} & Pick<HTMLAttributes<HTMLElement>, 'aria-describedby'>;

export type FormField = {
Expand All @@ -32,7 +32,7 @@ export type FormField = {
'id' | 'disabled' | 'aria-invalid' | 'aria-describedby'
>;
readOnly?: boolean;
size?: 'xsmall' | 'small' | 'medium';
size?: 'xsmall' | 'small' | 'medium' | 'large';
};

/**
Expand Down

0 comments on commit 92f541f

Please sign in to comment.