-
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Add useReactImageTurntable
hook to expose internal functions to the parent component. This will allow the parent component to hook into the internal logic of the component, simplifying state management.
Props should be passed to the hook instead of directly to the component.
Example usage
import { ReactImageTurntable, useReactImageTurntable } from 'react-image-turntable';
const Example = () => {
const turntableProps = useReactImageTurntable({ autoRotate: { interval: 200 } });
return <ReactImageTurntable {...turntableProps} />
}
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request