@mshafiqyajid/react-tabs 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -112,3 +112,11 @@ Add `data-theme="dark"` to a parent element (or `data-rtab-theme="dark"` for com
|
|
|
112
112
|
## License
|
|
113
113
|
|
|
114
114
|
MIT
|
|
115
|
+
|
|
116
|
+
## What's new in 0.3.0
|
|
117
|
+
|
|
118
|
+
- **Closeable tabs** — `tab.closable?: boolean` renders a × button; pair with `onTabClose(value)`.
|
|
119
|
+
- **Scrollable overflow** — `scrollable: true` keeps tabs on one line and renders chevron scroll buttons at the edges instead of wrapping.
|
|
120
|
+
- **Drag-to-reorder** — `sortable: true` + `onReorder(values: string[])`. HTML5 DnD, no external dep.
|
|
121
|
+
- **Keyboard typeahead** — letters jump to the first matching tab whose label starts with the buffer (600 ms reset).
|
|
122
|
+
- **`scrollActiveIntoView`** — default `true` when `scrollable`. Keeps the active tab in the viewport on activation.
|
package/package.json
CHANGED