Skip to content

Commit 707ced7

Browse files
committed
feat: promote useZoom hook to stable
1 parent 3007197 commit 707ced7

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -574,18 +574,17 @@ to make some of your custom elements user-selectable, use the
574574
turns off click-and-drag slide navigation, likely interfering with text
575575
selection UX.
576576

577-
## Hooks (experimental)
577+
## Hooks
578578

579-
The library exports the following experimental hooks that you may find helpful
580-
in customizing lightbox functionality. All experimental hooks are currently
581-
exported with the `unstable_` prefix.
579+
The library exports the following hooks that you may find helpful in customizing
580+
lightbox functionality.
582581

583582
### useZoom
584583

585584
You can use the `useZoom` hook to build your custom zoom controls.
586585

587586
```tsx
588-
import { unstable_useZoom as useZoom } from "yet-another-react-lightbox-lite";
587+
import { useZoom } from "yet-another-react-lightbox-lite";
589588
```
590589

591590
The hook provides an object with the following props:

src/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
export * from "./types";
22
export { default } from "./Lightbox";
3-
4-
// experimental exports
5-
export { useZoom as unstable_useZoom } from "./components";
3+
export { useZoom } from "./components";

0 commit comments

Comments
 (0)