Skip to content

Commit 6c1cd12

Browse files
committed
chore(text-field): add jsdoc of native input type prop
1 parent 339fc22 commit 6c1cd12

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121

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

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

packages/lumx-react/src/components/text-field/TextField.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ export interface TextFieldProps extends GenericProps, HasTheme {
6868
placeholder?: string;
6969
/** Reference to the wrapper. */
7070
textFieldRef?: Ref<HTMLDivElement>;
71+
/** Native input type (only when `multiline` is disabled). */
72+
type?: React.ComponentProps<'input'>['type'];
7173
/** Value. */
7274
value?: string;
7375
/** On blur callback. */
@@ -160,7 +162,7 @@ interface InputNativeProps {
160162
maxLength?: number;
161163
placeholder?: string;
162164
rows: number;
163-
type: string;
165+
type: TextFieldProps['type'];
164166
name?: string;
165167
value?: string;
166168
setFocus(focus: boolean): void;

0 commit comments

Comments
 (0)