Skip to content

Plug Socket

A physical switch: drag the plug, with its weighted rope cord, into the socket. The prongs only go in when aligned; on contact there's a spark and the neon sign lights up. Pull it out and the plug drops to the floor. Keyboard: Space or Enter.

Plan
Pro · commercial license
Dependencies
React only
Props
9 (7 adjustable)

Included in Pro and Lifetime. See pricing

10A · 250V

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
childrenstring"ON"Text of the neon sign that lights up when plugged in.
connectedbooleanundefinedWhether the plug is connected (controlled mode).
defaultConnectedbooleanfalseInitial state when not controlled from outside.
onChange(connected: boolean) => voidundefinedCalled when the plug makes or loses contact.
accentstring"#ffb347"Color of the neon light and the indicator.
cableColorstring"#e6e2d6"Cable color.
soundbooleanfalseSynthesized spark and thud on connect (only after interaction).
autoplaybooleanfalsePlugs and unplugs itself like a demo until someone touches it.
widthnumber460Stage width, in px.

Installation

With your license

1Set up the Pro registry once

Pro components aren't on npm or in the public shadcn registry: you install them with your license from Furin's private registry.

Use my license

2Install Plug Socket

npx shadcn@latest add @furin-pro/plug-socket

Dependencies

React
18 or later
Other libraries
none
License
commercial

Pro components install into your project: the code is yours and there's nothing else to download.

Keep exploring

  • A brass pressure gauge with an enamel dial in PSI and bar, a dry-friction needle that trembles with the pump, a domed glass with reflections and screws. Click to tap it and the needle unsticks.

    Indicators

  • A seven-segment display in three technologies (LCD with segment shadows, VFD with filament and glow, LED with diffuser), with visible ghost segments and clock, countdown and counter modes. A click switches technology.

    Indicators

  • A carbon-fiber sports tachometer with a glowing needle that whips around, a redline, shift lights that flash at the limiter and a gear display. The demo accelerates and shifts gears; press and hold to rev the engine.

    Indicators