Hulian UIv0.93.5413 components0 components
  • Start
  • Components
  • Blocks
  • Pages
  • Demos
  • Changelog
ChineseEnglish
  • ComponentsComponents
  • ThemeTheme

Collections

  • QuestionCard
  • Table
  • Book3D
  • ProTable
  • PricingTable
  • JsonViewer
  • EditableTable
  • List
  • Descriptions
  • RowActions
  • Tree
  • Card
  • Carousel
  • Video
  • Audio
  • BentoGrid
  • Image
  • MagicCard
  • AnimatedList
  • Marquee
  • Sortable
  • Kanban
  • DesignCanvas
  • LayerTree
  • StageDraw
  • SlideDeck
  • PresenterView
  • ComponentPicker
  • EventStream
  • QueueLane
  • DocumentSheet
  • Novel reader
  • Scheduler
  • Org classroom
  • Danmaku
  • LiveChat
  • LivePlayer
  • LogViewer
  • FileTree
  • CodeReviewThread
  • VirtualList
  • InfiniteScroll
  • LogoLoop
  • BounceCards
  • CardSwap
  • ChromaGrid
  • CircularGallery
  • DomeGallery
  • FlyingPosters
  • InfiniteMenu
  • MagicBento
  • ScrollStack
  • ProfileCard
  • TiltedCard
  • PixelCard
  • DecayCard
  • ReflectiveCard
  • Folder

Charts and Diagrams

  • Flow
  • Diagram
  • Paper
  • SequenceDiagram
  • Sankey
  • Sparkline
  • Funnel
  • Treemap
  • Gantt
  • Heatmap
  • ContributionGraph
  • Legend
  • Chart
  • WorldMap

Information

  • ImageViewer
  • LiveProductCard
  • DiffStat
  • ScoreRing
  • ScoreScale
  • Badge
  • Dot
  • StatusDot
  • Chip
  • FilterChip
  • Coupon
  • Tag
  • Annotation
  • Avatar
  • AvatarCircles
  • User
  • QRCode
  • Comment
  • RelativeTime
  • GitCommit
  • DeployStatus
  • ShieldBadge
  • AwardBadge
  • CreditCard
  • IconTile

Metrics

  • Stat
  • Statistic
  • Meter
  • Timeline
  • NumberTicker

Placeholders

  • Empty
  • Skeleton
  • Watermark

DomeGallery

dome-gallery

Arranges images across a draggable CSS 3D dome with inertial rotation, click-to-zoom viewing, and reduced-motion behavior.

Usage

Basic usage

When not transmitting images, the built-in placeholder gradient tiles can be used to rotate the spherical surface by dragging it and click to open it for a larger view.

tsx
<div className="relative h-80 overflow-hidden rounded-xl bg-bg">
  <DomeGallery />
</div>

Automatic rotation

autoRotate allows the sphere to rotate slowly without dragging, suitable for wallpaper/display scenes.

tsx
<DomeGallery autoRotate />

Colored tiles

grayscale={false} Turn off the grayscale filter, and the tiles directly display the original color.

tsx
<DomeGallery grayscale={false} segments={20} />

High Density Spherical Surface

segments increases the number of meridional segments, making the tiles denser and the cells smaller; fit adjusts the spherical curvature.

tsx
<DomeGallery segments={32} fit={0.55} />

When to use

Use DomeGallery for an immersive gallery that maps images to the inside of a 3D hemisphere, rotates by dragging, and opens images for closer viewing, for example a brand mood wall or portfolio hero. For a curved horizontal track with wheel scrolling and seamless looping, use CircularGallery. For a card wall revealed by a cursor spotlight, use ChromaGrid. For structured tabular data, use Table. The component uses CSS 3D and native Pointer Events with no external runtime dependency.

Import

ts
import { DomeGallery } from "@hulianui/ui"

Props

NameTypeDefaultDescription
imagesDomeGalleryImage[]Built-in gradient placeholder tilesImages mapped to the dome, provided as strings or { src, alt } objects. A short list repeats to fill the available tiles; surplus images are not displayed.
segmentsnumber24Number of longitudinal dome segments. Larger values produce denser, smaller tiles.
fitnumber0.5Dome radius relative to the container. Smaller values increase curvature, subject to minRadius and maxRadius.
minRadiusnumber380Minimum radius in pixels, preventing the dome from collapsing in small containers.
maxRadiusnumber1600Maximum radius in pixels, preventing the dome from appearing too flat on large screens.
maxVerticalRotationDegnumber6Maximum vertical rotateX angle, limiting vertical rotation so the poles do not come into view.
dragSensitivitynumber18Drag sensitivity: pixel movement divided by this value becomes the rotation angle. Larger values feel less sensitive.
dragDampeningnumber0.55Post-release inertial dampening from 0 to 1. Larger values glide longer.
grayscalebooleantrueWhether tiles use a grayscale filter. Enlarged images return to full color.
imageBorderRadiusstring"16px"Tile border radius as a CSS length.
openedImageBorderRadiusstring"24px"Image border radius in the enlarged view.
overlayColorstring"var(--color-background)"Base color for the edge fade and center mask. Pass a token matching the host background.
enlargeTransitionMsnumber320Duration in milliseconds for enlarged-view and auto-rotation transitions.
autoRotatebooleanfalseSlowly rotates the dome when it is not being dragged, suitable for displays and ambient backgrounds.
classNamestring-Class name forwarded to the root element.
styleCSSProperties-Inline styles forwarded to the root element.

DomeGalleryImage is either a string or { src: string; alt?: string }.

Usage notes

  • Place DomeGallery in a host with an explicit height and overflow-hidden. minRadius prevents the dome from collapsing in small containers.
  • Match overlayColor to the host background. The default is var(--color-background); a mismatch exposes a visible seam around the edge fade.
  • A short images list repeats to fill all tiles, while items beyond the available tile count are ignored. Estimate the tile count from segments before preparing assets.
  • Inertial movement and auto-rotation are reduced when the user prefers reduced motion.

Related

Table · Book3D · ProTable · PricingTable · JsonViewer · EditableTable

Playground

<div className="relative h-80 overflow-hidden rounded-xl bg-bg">
  <DomeGallery
    segments={24}
    fit={0.5}
    grayscale={true}
    autoRotate={false}
  />
</div>
PreviousCircularGalleryData DisplayNextFlyingPosters

On this page

  • Usage
  • Documentation
    • When to use
    • Import
    • Props
    • Usage notes
    • Related
  • Playground