---
title: "Build a button component · Kite Docs"
description: "Make a button once, with a label you can change, an icon you can switch off, and sizes and states, then use it across your files and update them all from one place."
url: https://kite.new/docs/tutorials/button-component
last_updated: 2026-11-05
---

# Build a button component

Make a button once, with a label you can change, an icon you can switch off, and sizes and states, then use it across your files and update them all from one place.

By [Loukman Nacik](https://x.com/itsloukman), Founder, Kite · Updated Nov 5, 2026

**Short answer:** draw the button once, press `⌥⌘K` to make it a component, then give it properties and variants. Every copy you place follows the original, and keeps its own label and choices. Publish the file as a library and your other files can use the same button.

> At a glance
>
> - **You need:** a Kite account and two files.
> - **Works for:** any part you repeat. A card or a nav is made the same way.

## What a component is

**A component** is a part you design once and use many times. Four more words come up below:

- **The main component** is the original. Change it and the copies change.
- **An instance** is a copy you place in a design.
- **A property** is what someone can change on a copy without breaking it away from the main one.
- **A variant** is one version of the component, such as a small button or a hovered one.

## What you'll have at the end

One button with four properties, in a library your other files can use:

| Property | Kind | Choices on each copy |
| --- | --- | --- |
| **Label** | Text | Any words, such as Sign up |
| **Show icon** | Boolean | On or off |
| **Size** | Variant | Medium or Small |
| **State** | Variant | Default or Hover |

Variants multiply, and Text and Boolean properties don't. In this example, 2 sizes × 2 states means drawing 4 variants, while Label and Show icon add none. Adding a Large size and a Pressed state would make it 3 × 3, so 9 variants to draw.

Start in a new file: in your library, click **New** at the top right and choose **New file**. If you made a design system in [Put your brand in a design system](https://kite.new/docs/tutorials/brand-design-system), choose it first, so the button uses your colours: click an empty part of the board and pick it under **Design system** in the right panel.

## 1. Draw the button

1. On the toolbar at the bottom of the board, click **Text** (the T). Click the board and type **Button**. Press `Esc` to stop typing; the text stays selected.
2. Right-click the text and choose **Add flex** (or press `⇧A`). The text is wrapped in a frame that hugs it and lays it out.
3. With the new frame selected, set its padding in the right panel under **Layout**: **16** across and **10** down.
4. Under **Appearance**, set the **Corner radius** to **8**. Under **Fill**, choose a colour, or your primary colour with **Apply variable**.
5. Click the text inside the button to select it, and give it a white fill, or your text-on-primary colour.
6. For the icon, click the small corner on the toolbar's shapes button (the square, after the folder) and choose **Ellipse**. Drag a small circle beside the button, holding `⇧` to keep it round, about 16 × 16. Drag it into the button, before the text: the frame makes room for it.
7. In the left panel's **Layers** tab, double-click the frame's name and call it **Button**; call the circle **Icon**.

## 2. Make it a component

Right-click the Button frame on the board and choose **Create component** (or press `⌥⌘K`). Its name turns purple: this is now the main component, and every copy of it follows what you change here.

## 3. Add a label and an icon switch

Properties are what someone can change on each copy without breaking it away from the main one.

1. Select the text inside the main component. Beside the **Text** heading in the right panel, click the purple diamond (**Apply text property**) and choose **Create property**.
2. Select the Icon circle. Beside **Appearance**, click the diamond (**Apply boolean property**) and choose **Create property**.
3. Select the main component. Under **Properties**, double-click each new property to rename it: **Label** and **Show icon**.

## 4. Add Size and State

1. Right-click the main component and choose **Add variant**. It becomes a set of two variants, one under the other, and **Properties** on the set shows **Property 1** with the values **Default** and **Variant2**.
2. Select the set by clicking its name above it, and double-click **Property 1**. Rename it **Size**.
3. Select the first variant. Under **Current variant**, change **Size** to **Medium**. Select the second and change it to **Small**, then give it less padding and a smaller text size.
4. Select the set, click **+** beside **Properties** (**Create property**) and choose **Variant**. Rename the new property **State**; every variant starts as **Default**.
5. Select the Medium variant and choose **Add variant** again. In **Current variant**, set the copy to Size **Medium**, State **Hover**, and make its fill a little darker. Do the same from the Small one.

You now have four: Medium and Small, each Default and Hover. If two end up with the same values, the set's **Properties** warns you: **Give each its own.**

> Another way: make each variant as its own component, name them **Size=Medium, State=Default**, **Size=Small, State=Default** and so on, select them all, right-click and choose **Combine as variants**. Kite reads the properties from the names.

## 5. Place copies and change them

1. At the top of the left panel, click the **Assets** tab. Your button is under **Created in this file**. Drag it onto the board, or into a frame. Do it twice.
2. Select a copy. The right panel lists its properties: choose a **Size** and **State**, type a new **Label** such as **Sign up**, and turn **Show icon** off on the other.
3. Now ⇧-click all four variants and change their corner radius. Every copy follows, and keeps its own label and choices.

![Kite's Instance section for a copy of a card component, showing which component it is, a Size menu set to Default and a Content slot marked Modified, above two cards made from it](https://kite.new/site/changelog/slots.webp)

A copy's properties in the right panel. This one is a card with a slot, but your button's copies list their choices the same way.

To edit a copy freely, right-click it and choose **Detach instance**: it becomes plain layers and stops following. **Reset instance** undoes your changes to a copy instead.

## 6. Publish it as a library

1. In **Assets**, click **Publish** on the **Created in this file** row. A message says which version was published.

## 7. Use it in another file

1. Open another file in the same workspace. In **Assets**, choose **+** beside **Libraries** and pick your first file, then drag the button in from it.
2. Back in the first file, ⇧-click all four variants and change their corner radius again. Click **Publish** on **Created in this file** in Assets again.
3. In the other file, an **Update** button shows beside your first file in Assets' **Libraries**. Click it. The copies there change, and **Undo** is offered if you want them back.

## Finish it for real use

Two states are enough to learn the steps, but a real button usually needs more. The [U.S. Web Design System](https://designsystem.digital.gov/components/button/) shows five. Add each one the same way as Hover, as a new value of **State**:

| State | When people see it | What to change |
| --- | --- | --- |
| **Default** | At rest | Nothing: you drew it in step 1 |
| **Hover** | The pointer is over it | A slightly darker fill |
| **Active** | It is being pressed | A darker fill again |
| **Focus** | Someone reaches it with the Tab key | An outline that is easy to see: [WCAG 2.2](https://www.w3.org/WAI/WCAG22/Understanding/focus-visible.html) asks for a visible keyboard focus indicator |
| **Disabled** | It can't be used yet | A muted fill and text |

Kite has no prototype flows, so nothing switches a copy to Hover for you: you choose the state on each copy, and the set shows developers what to build. The U.S. Web Design System has rules for the words too: keep the label short, use sentence case, and lead with a verb, for example **File a complaint** rather than **Complaint filing**.

*How this was checked: on November 5, 2026 we read each step against Kite's docs and the words in its interface, and each outside fact against the page linked beside it. Nobody ran these steps from start to finish for this page, so it gives no time for the whole tutorial.*

## Questions

### What is the difference between a variant and a property?

A property is a setting on a copy, such as Size or Label. A variant is one drawn version in a set, such as Medium and Default. Use variants when the drawing changes, and a Text or Boolean property when only the words change or a layer shows or hides. That is why Label isn't a variant: you would need one for every word.

### When should I not make a component?

When the part appears once. Make a component when the same part appears on more than one screen, or when you want your team to use it the same way. For a one-off layout, plain frames are quicker.

### Does a copy keep its own text when I change the main component?

Yes. Each change you make on a copy is an override, and that value stays the copy's own. Later edits to the main still reach the copy for everything else.

### Do I need a paid plan to publish a library?

Not in Kite: the free plan can publish one, and this tutorial uses two of its 3 files. The library has to be a file in a workspace. If you are coming from Figma, its free Starter plan works differently: you can make components there but can't publish them in a library. See [Figma's guide to publishing a library](https://help.figma.com/hc/en-us/articles/360025508373-Publish-a-library).

### Is this the same as components in Figma?

The words and the ideas match. Figma's component properties come in the same five kinds as Kite's: variant, text, boolean, instance swap and slot. A button made in Kite arrives in Figma through Copy to Figma as ordinary frames, not as a component. See [Figma's guide to component properties](https://help.figma.com/hc/en-us/articles/5579474826519-Explore-component-properties).

### Who can use my library?

Members of the workspace, as long as they can open the library's file. People invited to one file from outside the workspace don't see its libraries.

### Can my agent build with this button?

Yes. An agent can place copies of your components and set their properties. To have it turn repeated parts into components as it draws, turn on Build with components. It is off by default, because agents take longer to draw that way.

## Next

- [Components](https://kite.new/docs/components): instance swaps, nested instances, and how overrides are kept.
- [Layout](https://kite.new/docs/editor/layout): flex, padding, gaps and sizing.
- [Build with components](https://kite.new/docs/agents#build-with-components), so your agent builds repeated parts this way too.

**About the author.** Loukman Nacik is the founder of Kite, the design canvas people share with their AI agents.

Spotted something out of date? Contact us at [hello@kite.new](mailto:hello@kite.new) and we will correct it.

## Related

- [Components](https://kite.new/docs/components)
- [Layout](https://kite.new/docs/editor/layout)
- [Design systems](https://kite.new/docs/design-systems)

---

Source: https://kite.new/docs/tutorials/button-component
All Kite docs: https://kite.new/llms.txt
Design agent benchmark: https://kite.new/benchmark (as Markdown: https://kite.new/benchmark.md)
