Logo3D
An extruded, lit 3D logo from an SVG path or text.
3Dimport { Logo3D } from 'umbra-ui/3d'
Props
| Prop | Type | Default | Description |
|---|---|---|---|
aria-label required | string | — | Accessible name: what the logo says or represents. Required because the canvas itself has no text. |
depth | number | 0.18 | Extrusion depth relative to the logo's size. |
fallback | ReactNode | — | Replaces the built-in static fallback shown when WebGL is unavailable, the scene fails to load, or motion is reduced. |
font | string | object | — | three.js typeface: a URL to a `.typeface.json` file or the parsed JSON. Required with `text`. |
path | string | M50 5a45 45 0 1 0 0 90a45 45 0 1 0 0-90Z M60 14a30 30 0 1 1 0 60a30 30 0 1 1 0-60Z | SVG path data (`d`) to extrude, drawn in a 100×100 box. Defaults to the Umbra mark. |
quality | "low" | "medium" | "high" | medium | Rendering budget: DPR cap 1 / 1.5 / 2 and proportionally fewer or more polygons and particles. |
reducedMotion | "system" | "always" | "never" | "system" | Reduced-motion override. Under reduced motion the static fallback is rendered instead of the scene. |
text | string | — | Text to extrude instead of a path. Needs `font`. |
Usage notes
Extrudes an SVG path drawn in a 100×100 box, or text with a three.js typeface passed as font.
Accessibility
- Exposed as a single image named by
aria-label. - The fallback renders the same path as an SVG.
Import
import { Logo3D } from 'umbra-ui/3d';
import 'umbra-ui/styles.css'; // once, at the root of your app