23rd logo23rd

Logo Burst

Hairline tentacles burst from the center, then breathe slowly. Click to replay.

Preview

Installation

pnpm dlx shadcn@latest add @23rd/logo-burst

Or from the public GitHub registry:

pnpm dlx shadcn@latest add radiumcoders/23rd.dev/logo-burst

Usage

Give the parent a size; the canvas is transparent.

"use client"

import { LogoBurst } from "@/components/ui/logo-burst"

export function HeroBurst() {
  return (
    <div className="relative h-svh w-full bg-background">
      <LogoBurst />
    </div>
  )
}

Pass children to put a mark in the center.

<LogoBurst>
  <img src="/mark.svg" alt="" className="size-20 rounded-[22%]" />
</LogoBurst>

Replay from outside by incrementing replayKey.

"use client"

import { useState } from "react"
import { LogoBurst } from "@/components/ui/logo-burst"

export function Replayable() {
  const [key, setKey] = useState(0)

return (

<div className="relative h-96 bg-background">
<LogoBurst replayKey={key} replayOnClick={false} />
<button type="button" onClick={() => setKey((n) => n + 1)}>
Replay
</button>
</div>
)
}

Props

PropTypeDefault
childrenReactNode / Snippetnone
tentacleCountnumber260
colorstringtheme ink / bone
theme"light" | "dark" | "auto""auto"
breathebooleantrue
coreSizenumber0, or measured from children
radiusnumber0.48, reach vs the shorter edge
durationnumber1.35
seednumber23
particleRationumber0.62
replayKeynumber0
replayOnClickbooleantrue
labelstring"Logo burst"
classNamestringReact only
classstringSvelte only