Skip to content

    Browse components

    Magma Crust

    Slowly drifting plates of dark crust split by white-hot, pulsing cracks of molten metal. WebGL.

    Magma Crust

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/magma-crust

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/magma-crust.json

    Usage

    import { MagmaCrust } from "@/components/ui/magma-crust";
    
    <div className="relative h-96">
      <MagmaCrust glowColor="#ff4d12" hotColor="#ffc861" />
    </div>

    Props

    PropTypeDefaultDescription
    crustColorstring"#1c100c"Cooled crust color.
    glowColorstring"#ff4d12"Deep molten glow.
    hotColorstring"#ffc861"Hottest crack color.
    speednumber1Animation speed multiplier.
    scalenumber3Plate density; higher gives smaller plates.
    crackWidthnumber0.08Width of the glowing cracks.
    intensitynumber1Heat and brightness.
    classNamestring—Extra classes for the root element.