Complete reference for Narro components and hooks.
Presentation Props
| Prop | Type | Default | Description |
|---|---|---|---|
aspectRatio | "16:9" | "4:3" | "21:9" | "16:9" | Slide aspect ratio |
keyboard | boolean | true | Enable keyboard navigation |
mouse | boolean | true | Enable mouse navigation |
touch | boolean | true | Enable touch navigation |
routing | boolean | true | Enable URL routing |
Hooks
tsx
import { useSlide, usePresentation, useFragment } from "@reactslides/core";
// Get current slide info
const { currentSlide, totalSlides, goToSlide } = usePresentation();
// Get slide-specific info
const { isActive, slideIndex } = useSlide();
// Fragment control
const { visible, index, total, next, prev } = useFragment();