Skip to content

Commit 569a3de

Browse files
committed
Document the style={false} usage
1 parent d313fb7 commit 569a3de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Name | Type | Default
7070
**className**|`string` | none
7171
**disabled** |`boolean` | none
7272
**readOnly** |`boolean` | none
73-
**style** |`object` | none
73+
**style** |`object` or `false` | none
7474
**size** |`number` or `string` | none
7575
**mobile** |`true`, `false`, 'auto' or `function`|`auto`
7676

@@ -109,7 +109,8 @@ NumericInput.style.input.color = 'red';
109109
Finally, you can still use CSS if you want. Each component's root element has the
110110
`react-numeric-input` class so that it is easy to find these widgets on the page. However,
111111
keep in mind that because of the inline styles you might need to use `!important` for some
112-
rules. Example:
112+
rules unless you pass `style={false}` which will disable the inline styles and you will
113+
have to provide your own CSS styles for everything. Example:
113114
```css
114115
.react-numeric-input input {
115116
color: red;

0 commit comments

Comments
 (0)