npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sethwebster/react-ethereal-input

v0.4.0

Published

Animated nebula gradient input component for React

Downloads

666

Readme

@sethwebster/react-ethereal-input

Animated nebula gradient input component for React.

Live demo


Install

npm install @sethwebster/react-ethereal-input
# or
pnpm add @sethwebster/react-ethereal-input
# or
yarn add @sethwebster/react-ethereal-input

Peer deps: react >= 17, react-dom >= 17. Zero runtime dependencies.


Quickstart

import { EtherealInput } from "@sethwebster/react-ethereal-input";

export function SearchBar() {
  return <EtherealInput placeholder="Search..." />;
}

Examples

Basic

<EtherealInput
  placeholder="Enter email"
  type="email"
  value={value}
  onChange={(e) => setValue(e.target.value)}
/>

With left and right slots

import { SearchIcon, XIcon } from "lucide-react";

<EtherealInput
  placeholder="Search"
  leftContent={<SearchIcon size={16} />}
  rightContent={
    <button onClick={clear}>
      <XIcon size={16} />
    </button>
  }
/>

Textarea mode

<EtherealInput
  as="textarea"
  placeholder="Write something..."
  rows={4}
  value={value}
  onChange={(e) => setValue(e.target.value)}
/>

Custom colors (dark mode variant)

<EtherealInput
  placeholder="Dark theme"
  colors={["#ff6b6b", "#feca57", "#ff9ff3", "#48dbfb"]}
  containerStyle={{ background: "rgba(15, 15, 20, 0.95)", color: "#fff" }}
/>

Dialed-down glow

<EtherealInput
  placeholder="Subtle"
  glowBlur={0.3}
  glowOpacity={0.3}
  blobBlur={18}
  glowSize={10}
/>

Props

All standard input or textarea HTML attributes are forwarded. The following props are specific to EtherealInput.

| Prop | Type | Default | Description | |---|---|---|---| | as | "input" \| "textarea" | "input" | Renders an <input> or <textarea>. | | colors | string[] | ["#7b2ff7", "#2feef7", "#22c55e", "#a855f7", "#06b6d4"] | Gradient blob colors. 3-6 values recommended. | | speed | number | 1 | Animation speed multiplier. 1 is ~8-15 s per rotation depending on blob. | | blobBlur | number | 30 | Blur radius (px) applied to each gradient blob. | | density | number | 1 | Blob count multiplier. 2 = two blobs per color. | | glowSize | number | 20 | How far the glow extends beyond the border (px). Set to 0 to disable glow. | | glowBlur | number | 1 | Scales the blur spread of the glow layer. 0 disables it entirely. | | glowOpacity | number | 0.6 | Opacity of the glow layer. | | borderWidth | number | 3 | Gradient border thickness (px). | | borderRadius | number | 24 | Border radius (px) of the outer border. | | leftContent | ReactNode | — | Content rendered to the left of the input field. | | rightContent | ReactNode | — | Content rendered to the right of the input field. | | bottomContent | ReactNode | — | Content rendered below the input in a full-width row. | | wrapperStyle | CSSProperties | — | Style overrides for the outermost div. | | containerStyle | CSSProperties | — | Style overrides for the inner container (controls background, padding, etc.). | | inputStyle | CSSProperties | — | Style overrides for the <input> or <textarea> element. | | className | string | — | Class name applied to the outermost wrapper. |

Typescript discriminated union

When as="textarea", all TextareaHTMLAttributes are available. When as="input" (or omitted), all InputHTMLAttributes are available. The style prop is replaced by inputStyle to avoid conflicts with the internal layout.


Features

  • Animated nebula gradient border with orbiting, wobbling blobs
  • Outer glow emanation layer — fully controllable or removable
  • Input and textarea modes via as prop
  • Left and right content slots for icons, buttons, labels
  • forwardRef compatible
  • SSR safe — no window access outside effects
  • Respects prefers-reduced-motion
  • Zero runtime dependencies
  • ESM + CJS dual build
  • TypeScript-first with full type inference

License

MIT — Seth Webster