Click images to expand
More components in Pro
Galleries, cards and interactive pieces for pages that need more than the basics.
images | (string | { src: string; alt?: string })[] | DEFAULT_IMAGES | Array of image URLs (strings) or image objects with src and optional alt text |
fit | 0.5 | Size factor for the dome radius based on container dimensions | |
fitBasis | 'auto' | 'min' | 'max' | 'width' | 'height' | 'auto' | Basis for calculating the dome size |
minRadius | 600 | Minimum radius for the dome in pixels | |
maxRadius | Infinity | Maximum radius for the dome in pixels | |
padFactor | 0.25 | Padding factor for the viewer area | |
overlayBlurColor | '#120F17' | Color for the outer portion of the radial overlay blur | |
maxVerticalRotationDeg | 5 | Maximum vertical rotation angle in degrees | |
dragSensitivity | 20 | Sensitivity of drag interactions | |
enlargeTransitionMs | 300 | Duration of image enlargement transition in milliseconds | |
segments | 35 | Number of segments for both X and Y to keep the dome proportional | |
dragDampening | 2 | Damping factor for drag inertia (0-1, higher = more damping) | |
openedImageWidth | '400px' | Width of the enlarged image | |
openedImageHeight | '400px' | Height of the enlarged image | |
imageBorderRadius | '30px' | Border radius for closed tile images | |
openedImageBorderRadius | '30px' | Border radius for opened/enlarged images | |
grayscale | Whether to render all images in grayscale |
images(string | { src: string; alt?: string })[]Array of image URLs (strings) or image objects with src and optional alt text
DEFAULT_IMAGESfitnumberSize factor for the dome radius based on container dimensions
0.5fitBasis'auto' | 'min' | 'max' | 'width' | 'height'Basis for calculating the dome size
'auto'minRadiusnumberMinimum radius for the dome in pixels
600maxRadiusnumberMaximum radius for the dome in pixels
InfinitypadFactornumberPadding factor for the viewer area
0.25overlayBlurColorstringColor for the outer portion of the radial overlay blur
'#120F17'maxVerticalRotationDegnumberMaximum vertical rotation angle in degrees
5dragSensitivitynumberSensitivity of drag interactions
20enlargeTransitionMsnumberDuration of image enlargement transition in milliseconds
300segmentsnumberNumber of segments for both X and Y to keep the dome proportional
35dragDampeningnumberDamping factor for drag inertia (0-1, higher = more damping)
2openedImageWidthstringWidth of the enlarged image
'400px'openedImageHeightstringHeight of the enlarged image
'400px'imageBorderRadiusstringBorder radius for closed tile images
'30px'openedImageBorderRadiusstringBorder radius for opened/enlarged images
'30px'grayscalebooleanWhether to render all images in grayscale
Dependencies
1 required package
npm install @use-gesture/react


