In Once UI 2.6 the Mascot turns into a cube that solves itself while your agent works, gets seven kawaii moods and squashes when you poke it. The release also adds Map, StyleScope, stacked chat messages, cursor presets and an icon rail for Nav.
Once UI 2.6 is out on npm. The headline is the Mascot: while your agent works it turns into a cube, scrambles and solves itself, clicks into the Once UI logo and softens back into a face. It also picked up seven new moods and a squash when you poke it. Every part is a prop, and the release brings a lot more around it: maps, scoped themes, stacked chat messages and cursor presets.
0:00 / 0:00
It thinks in a cube
Set working="cube" and the Mascot is drawn in 3D. While its state is thinking, it turns into a 2 × 2 cube, scrambles and solves it with no face showing. When the thinking stops, the cube clicks into place, shows the Once UI logo for a beat and softens back into the mascot. The gaps between the pieces are hairline thin, and sides colours the faces: the classic set, tints of your colour, mono, or a colour per side. Without WebGL, or with reduced motion, the flat mascot stays.
love, excited, laughing, embarrassed, crying, angry and confused each draw an everyday mood plus its effects: heart, star or laughing eyes, blush, sweat, tears, an anger mark, and hearts, sparkles or a question mark floating up. effects adds any of them to any mood, such as , or turns them off with . The flat mascot and the cube draw the same ones.
Poke it
A click or a tap squashes the mascot, makes it blink and gives it a surprised face for a moment. It is on by default, and poke={false} turns it off.
Maps
@once-ui-system/core/map draws an interactive map on MapLibre GL with free OpenFreeMap tiles: OpenStreetMap data, no key and no view limit. The basemap follows your theme. Markers are React content, MapPin draws price pills and dots, MapMarkers renders items from data with optional clustering, MapPopup is a card above a point and MapCircle marks an area in metres. maplibre-gl is an optional peer, loaded only when a map renders.
And the rest
StyleScope puts one site's or tenant's look inside another page, such as a site builder's preview, with its own brand, colours and fonts, rendered on the server so the first paint is right.
Nested data-brand now recolours a section on its own, in dark and light.
Stacked chat messages draw a quick run of messages from one author as one block, and chat times can read "now", "2m" or "1h" and keep themselves current with formatRelativeTime.
Image thumbnails in ChatComposer show a picked or pasted image with a remove button.
Cursor presets (soft, rounded, ) restyle every cursor in a subtree, drawn by the browser so they never lag.
Install or update with npm i @once-ui-system/core@latest.
Share
effects={["blush"]}
effects={false}
dot
An icon rail for Nav: collapsed narrows it to icons, and expandOnHover opens it over the page without moving the content beside it.
feather on Mask sets how soft its edge is, down to a sharp lens.