Image
@rockshin/tao-uiImages with full-screen preview, grouped navigation, zoom and rotation, fallbacks and progress placeholders.
Each example can be copied and run independently. Use the device control on framed previews to switch between desktop and phone widths.
Examples
Preview an image
Click the image or focus it and press Enter. Escape closes the preview and restores focus.
Browse an image group
PreviewGroup registers its children and supports previous/next navigation with buttons or arrow keys.
Open a controlled preview
Control open and onOpenChange to launch the preview from another action.
Fallback and thumbnail-only mode
fallback is shown after the source fails. preview:false keeps the image non-interactive.
Progress placeholder
The progress value belongs to the application. This example controls it with a range input and shows the image at 100%.
Custom cover and styles
Customize the hover cover and image slot without changing the preview behavior.
Custom preview actions
actionsRender receives the existing toolbar and transform actions. This example adds Reset.
Preview on a phone
The full-screen preview reserves space for actions and safe-area padding. Use the phone shell to check fit and navigation.