File tree Expand file tree Collapse file tree 2 files changed +20
-13
lines changed
packages/react/src/TextInput Expand file tree Collapse file tree 2 files changed +20
-13
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @primer/react " : patch
3+ ---
4+
5+ Update TextInput TypeScript types to make shared props optional
Original file line number Diff line number Diff line change @@ -39,19 +39,21 @@ export type TextInputNonPassthroughProps = {
3939 * A visual that renders inside the input after the typing area
4040 */
4141 trailingAction ?: React . ReactElement < React . HTMLProps < HTMLButtonElement > >
42- } & Pick <
43- StyledWrapperProps ,
44- | 'block'
45- | 'contrast'
46- | 'disabled'
47- | 'monospace'
48- | 'sx'
49- | 'width'
50- | 'maxWidth'
51- | 'minWidth'
52- | 'variant'
53- | 'size'
54- | 'validationStatus'
42+ } & Partial <
43+ Pick <
44+ StyledWrapperProps ,
45+ | 'block'
46+ | 'contrast'
47+ | 'disabled'
48+ | 'monospace'
49+ | 'sx'
50+ | 'width'
51+ | 'maxWidth'
52+ | 'minWidth'
53+ | 'variant'
54+ | 'size'
55+ | 'validationStatus'
56+ >
5557>
5658
5759export type TextInputProps = Merge < React . ComponentPropsWithoutRef < 'input' > , TextInputNonPassthroughProps >
You can’t perform that action at this time.
0 commit comments