Skip to content

Commit

Permalink
update children type
Browse files Browse the repository at this point in the history
  • Loading branch information
ecraig12345 committed Dec 15, 2021
1 parent f46b1e5 commit 9e4f9f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-input/etc/react-input.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export type InputOnChangeData = {

// @public
export type InputProps = Omit<ComponentProps<InputSlots, 'input'>, 'children' | 'defaultValue' | 'onChange' | 'size' | 'value'> & {
children?: never;
size?: 'small' | 'medium' | 'large';
inline?: boolean;
appearance?: 'outline' | 'underline' | 'filledDarker' | 'filledLighter';
Expand Down
3 changes: 3 additions & 0 deletions packages/react-input/src/components/Input/Input.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export type InputProps = Omit<
// `children` is unsupported. The rest of these native props have customized definitions.
'children' | 'defaultValue' | 'onChange' | 'size' | 'value'
> & {
/** Input can't have children. */
children?: never;

/**
* Size of the input (changes the font size and spacing).
* @default 'medium'
Expand Down

0 comments on commit 9e4f9f4

Please sign in to comment.