Skip to content

Commit c84f8fc

Browse files
authored
Add missing disabled prop
1 parent 80fef8d commit c84f8fc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,20 @@ Provide a custom class name for the `<ul />`.
165165
166166
If you specify additional props on the `<Tab />` component they will be forwarded to the rendered `<li />`.
167167
168+
#### disabled: `boolean`
169+
170+
> default: `false`
171+
172+
Disable this tab which will make it not do anything when clicked. Also a disabled class name will be added (see `disabledClassName`)
173+
168174
#### disabledClassName: `string`
169175
170176
> default: `"react-tabs__tab--disabled"`
171177
172178
Provide a custom class name for disabled tabs.
173179
180+
> This option can also be set for all `<Tab />` components with the prop `disabledTabClassName` on `<Tabs />`.
181+
174182
#### className: `string | Array<string> | { [string]: boolean }`
175183
176184
> default: `"react-tabs__tab"`
@@ -185,6 +193,8 @@ Provide a custom class name for the `<li />`.
185193
186194
Provide a custom class name for the active tab.
187195
196+
> This option can also be set for all `<Tab />` components with the prop `selectedTabClassName` on `<Tabs />`.
197+
188198
### &lt;TabPanel /&gt;
189199
190200
If you specify additional props on the `<TabPanel />` component they will be forwarded to the rendered `<dev />`.
@@ -211,6 +221,8 @@ By default the tab content will only be rendered when the tab is active. If set
211221
212222
Provide a custom class name for the active tab panel.
213223
224+
> This option can also be set for all `<TabPanel />` components with the prop `selectedTabPanelClassName` on `<Tabs />`.
225+
214226
## Controlled vs Uncontrolled mode
215227
216228
React tabs has two different modes it can operate in, which change the way how much you need to take care about the state yourself.

0 commit comments

Comments
 (0)