Skip to content

Commit

Permalink
chore(text-field): add jsdoc of native input type prop
Browse files Browse the repository at this point in the history
  • Loading branch information
gcornut committed Oct 3, 2024
1 parent 339fc22 commit 6c1cd12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- `Tooltip`: increment z-index making them appear above popovers.
- `TextField`: display browser native buttons when used with type="number", add "number" use case documentation.
- `TextField`: add jsdoc and typing for `type` prop.

## [3.9.1][] - 2024-09-17

Expand Down
4 changes: 3 additions & 1 deletion packages/lumx-react/src/components/text-field/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export interface TextFieldProps extends GenericProps, HasTheme {
placeholder?: string;
/** Reference to the wrapper. */
textFieldRef?: Ref<HTMLDivElement>;
/** Native input type (only when `multiline` is disabled). */
type?: React.ComponentProps<'input'>['type'];
/** Value. */
value?: string;
/** On blur callback. */
Expand Down Expand Up @@ -160,7 +162,7 @@ interface InputNativeProps {
maxLength?: number;
placeholder?: string;
rows: number;
type: string;
type: TextFieldProps['type'];
name?: string;
value?: string;
setFocus(focus: boolean): void;
Expand Down

0 comments on commit 6c1cd12

Please sign in to comment.