diff --git a/.changeset/input-props.md b/.changeset/input-props.md new file mode 100644 index 000000000..00b69a8d5 --- /dev/null +++ b/.changeset/input-props.md @@ -0,0 +1,5 @@ +--- +'react-magma-dom': patch +--- + +fix(Input): Improve descriptions for `inputWrapperStyle` and `containerStyle` props. \ No newline at end of file diff --git a/packages/react-magma-dom/src/components/InputBase/index.tsx b/packages/react-magma-dom/src/components/InputBase/index.tsx index e02a2ad1e..3081165a4 100644 --- a/packages/react-magma-dom/src/components/InputBase/index.tsx +++ b/packages/react-magma-dom/src/components/InputBase/index.tsx @@ -40,7 +40,8 @@ export interface InputBaseProps */ children?: any; /** - * Style properties for the component container element + * Style properties for the component container element. + * This div is a direct child of the div with the inputWrapperStyle, so the second from the top. */ containerStyle?: React.CSSProperties; /** @@ -81,7 +82,7 @@ export interface InputBaseProps */ inputStyle?: React.CSSProperties; /** - * Style properties for input wrapper element + * Style properties for input wrapper element. This is the outermost div. */ inputWrapperStyle?: React.CSSProperties; /**