Toggle switch 3D line illustration

A panel-mounted toggle switch with an indicator lamp that snaps on and eases back off, for a restart step, a reset or a troubleshooting guide.

Developer docsDevicesFree

Open in the libraryEmbed code

Toggle switch in 3D line art, with the lever picked out in orange

How it moves

Hero part
The lever.
Hover
The lever nudges about 6° toward on, on the spring.
Click
It snaps over to on, the lamp lights, then after about 1.2 s it eases back to off.
Intros
Stack: the parts drop into place, one after another.
Draw: the lines trace themselves on.
Action
Its hero hands “Restart” to your page: each time it opens, the figure posts an action named restart, and your page decides what happens.
Reduced motion
It shows its final state and does not move.

Where it fits

Docs headers, install guides and CLI help, where a tangible object makes a step memorable.

Other words people use for it: lever, flip switch, reboot and reset.

More for this moment: interactive illustrations for developer docs.

Embed it

HTML
<iframe
  src="https://linejig.com/restart-switch/index.html?embed=1&style=brand&brand=f5821f&theme=light&intro=stack&grid=1"
  title="Toggle switch" width="400" height="320" style="border:0"></iframe>

Brand style in Linejig orange, the stack intro and the floor grid; the theme follows this page. Change any of them in the library, and see the docs for sizes, actions and the poster fallback.

Styles

It comes in Line art, Brand and Dots, each in light and dark, in your brand colour.

It is free in every style.

Use it with your coding agent

Paste this into your coding agent. It adds Toggle switch with its embed code and points the agent to the docs.

Prompt
Add the Toggle switch illustration from Linejig to this page: https://linejig.com/library/restart-switch
It is a free interactive 3D illustration that runs in an iframe. Put this embed where it fits:

<iframe
  src="https://linejig.com/restart-switch/index.html?embed=1&style=brand&brand=f5821f&theme=light&intro=stack&grid=1"
  title="Toggle switch" width="400" height="320" style="border:0"></iframe>

Keep embed=1 in the address. Set theme=dark on a dark page, and set brand= to our brand colour as six hex digits without the #. Keep the box 5:4, such as 400 by 320. When its hero part is clicked, the figure posts a message of type "action" with id "restart"; handle it if our page should react. The docs cover sizes, the poster fallback and the messages: https://linejig.com/docs

To draw a similar object in the same consistent style, install the free Line art skill once and restart your agent. It works in Claude Code and Codex CLI, and installs for Cursor, Gemini CLI, GitHub Copilot and others, following each tool's documented skills folder.

Terminal
npx linejig install

Then ask:

Prompt
Use the linejig skill to draw an interactive 3D line illustration like Linejig's Toggle switch (https://linejig.com/library/restart-switch) for docs headers, install guides and CLI help: one object, with the lever as the one part that answers hover and click, and add it to the page where it fits.

The skill page has the full install steps.

Related figures

All interactive illustrations for developer docsAll free illustrationsAll illustrations, A to Z