The same parts, in any look.
eclosion ships no CSS. Each part takes your own classes, and the motion draws real borders, radii and shadows all the way through. Here's one menu in five styles.
Site#
The look of this site. The trigger and the surface share one color, so they read as one shape.
Glass#
A translucent fill with backdrop-blur. It needs something colorful behind it.
Neobrutalist#
Thick borders and a hard offset shadow. The shadow grows with the surface.
Terminal#
Monospace and sharp corners. Give Eclosion.Close children to replace its ×.
Soft#
Large radii and a wide, diffuse shadow. The radius morphs along with the size.
Style by state#
Every part has a data-state of closed, opening, open or closing.
<Eclosion.Trigger className="data-[state=open]:pointer-events-none" />Good to know#
- Don't put a CSS
transitiononEclosion.Content. It fights the per-frame updates. - Portals sit at
z-index: 9999. Set--eclosion-zto change that.