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, Founder, Kite · Updated
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, 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
- 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.
- 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.
- With the new frame selected, set its padding in the right panel under Layout: 16 across and 10 down.
- Under Appearance, set the Corner radius to 8. Under Fill, choose a colour, or your primary colour with Apply variable.
- Click the text inside the button to select it, and give it a white fill, or your text-on-primary colour.
- 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.
- 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.
- 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.
- Select the Icon circle. Beside Appearance, click the diamond (Apply boolean property) and choose Create property.
- Select the main component. Under Properties, double-click each new property to rename it: Label and Show icon.
4. Add Size and State
- 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.
- Select the set by clicking its name above it, and double-click Property 1. Rename it Size.
- 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.
- Select the set, click + beside Properties (Create property) and choose Variant. Rename the new property State; every variant starts as Default.
- 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.
5. Place copies and change them
- 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.
- 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.
- Now ⇧-click all four variants and change their corner radius. Every copy follows, and keeps its own label and choices.

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
- In Assets, click Publish on the Created in this file row. A message says which version was published.
7. Use it in another file
- Open another file in the same workspace. In Assets, choose + beside Libraries and pick your first file, then drag the button in from it.
- 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.
- 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 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 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.
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.
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: instance swaps, nested instances, and how overrides are kept.
- Layout: flex, padding, gaps and sizing.
- Build with components, so your agent builds repeated parts this way too.