Skip to content

Commit

Permalink
Try adding style prop via WordPressComponentProps
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Nov 1, 2022
1 parent 812b8ab commit 3c8d736
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions packages/components/src/input-control/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,12 @@ export interface InputFieldProps extends BaseProps {
type?: HTMLInputTypeAttribute;
}

export interface InputBaseProps extends BaseProps, FlexProps {
export interface InputBaseProps
extends Pick<
WordPressComponentProps< BaseProps, 'div' >,
'className' | 'id' | 'style' | keyof BaseProps
>,
FlexProps {
children: ReactNode;
/**
* Renders an element on the left side of the input.
Expand Down Expand Up @@ -165,19 +170,10 @@ export interface InputBaseProps extends BaseProps, FlexProps {
* @default false
*/
disabled?: boolean;
/**
* The class name to be added to the wrapper element.
*/
className?: string;
id?: string;
/**
* If this property is added, a label will be generated using label property as the content.
*/
label?: ReactNode;
/**
* If this property is added, it will be added to the modal frame `div`.
*/
style?: CSSProperties;
}

export interface InputControlProps
Expand Down

0 comments on commit 3c8d736

Please sign in to comment.