File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed
packages/react/src/components/TextArea Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,20 @@ import React from 'react';
10
10
import cx from 'classnames' ;
11
11
import { usePrefix } from '../../internal/usePrefix' ;
12
12
13
- const TextAreaSkeleton = ( { hideLabel, className, ...rest } ) => {
13
+ export interface TextAreaSkeletonProps
14
+ extends React . InputHTMLAttributes < HTMLDivElement > {
15
+ /**
16
+ * Specify an optional className to add to the form item wrapper.
17
+ */
18
+ className ?: string ;
19
+
20
+ /**
21
+ * Specify whether the label should be hidden, or not
22
+ */
23
+ hideLabel ?: boolean ;
24
+ }
25
+ const TextAreaSkeleton = ( props : TextAreaSkeletonProps ) => {
26
+ const { className, hideLabel, ...rest } = props ;
14
27
const prefix = usePrefix ( ) ;
15
28
return (
16
29
< div className = { cx ( `${ prefix } --form-item` , className ) } { ...rest } >
Original file line number Diff line number Diff line change @@ -17,12 +17,8 @@ import { useAnnouncer } from '../../internal/useAnnouncer';
17
17
import useIsomorphicEffect from '../../internal/useIsomorphicEffect' ;
18
18
import { useMergedRefs } from '../../internal/useMergedRefs' ;
19
19
20
- type ExcludedAttributes = '' ;
21
20
export interface TextAreaProps
22
- extends Omit <
23
- React . InputHTMLAttributes < HTMLTextAreaElement > ,
24
- ExcludedAttributes
25
- > {
21
+ extends React . InputHTMLAttributes < HTMLTextAreaElement > {
26
22
/**
27
23
* Provide a custom className that is applied directly to the underlying
28
24
* `<textarea>` node
You can’t perform that action at this time.
0 commit comments