# Playground: build and copy a snippet

> Pick an iVOLT component, a variant, a size and a panel theme, see it rendered live, then copy the HTML straight into your page. No account, no build step.

Source: https://ivolt.intervolutions.com/playground · iVOLT 1.1.2 · English

This is a **snippet generator**, not an editor. You choose a component, a variant, a size where it applies, a theme for the preview panel and one of a few sample strings; the page builds the markup from fixed templates and shows you the HTML to copy. There is no free-form input and no code is executed, so what you copy is always valid iVOLT markup. Nothing is stored: reload the page and you are back to the defaults.

**Runs:** in this page, from fixed templates. **Stores:** nothing. **Executes:** no code you type — there is nothing to type.

The playground needs JavaScript

Every component page carries the same markup as a static fixture with a copy button, so you can take the snippets from there instead.

## Snippet generator

Choose a component, a variant, a size and a theme for the panel. The markup is built from fixed templates and the HTML underneath is what you copy.

Generated snippetplayground

```

```

[Open the Button component page](https://ivolt.intervolutions.com/components/button)

## From snippet to page

The copied HTML works in any page that links the stylesheet and puts `class="iv-root"` on the `html` element. That is the whole setup:

```
<html class="iv-root" data-iv-theme="system">
  <link rel="stylesheet" href="ivolt/css/ivolt.min.css">
  <!-- paste the snippet here -->
  <script type="module" src="ivolt/js/auto.js"></script>
```

The script line is only needed for components that come alive with JavaScript (the snippet carries a `data-iv-component` attribute when it does). Content components such as buttons, badges, alerts and cards are CSS only. The theme radio above only sets `data-iv-theme` on the preview panel; put the same attribute on any element of your page to theme that part of it.

## Going further

- Every component page has a live stage with the real file running, controls for theme, direction, width and motion, and the full markup.
- The [theme builder](https://ivolt.intervolutions.com/foundations/theme-builder) changes the brand colours, radius and font and prints the CSS to paste after the stylesheet.
- The [examples](https://ivolt.intervolutions.com/examples) are four complete pages built only with iVOLT, ready to download.
- The [reference](https://ivolt.intervolutions.com/reference) lists every class, token, attribute and event, generated from the sources.
