Components
A Kite component is a part you design once and reuse, like a button: edit the main and every instance follows, with variants, properties and slots.
What a component is
A component has one main component, the original, and any number of instances, the copies you place in your designs. Edit the main and every instance changes with it. Each instance can still have its own text, colours and sizes where it needs them.
Make a component when the same part appears on more than one screen, or when you want the rest of your team to use it the same way. For a one-off layout, plain frames are quicker.
Kite at a glance
- Components
- Components with variants, properties and instance swap
- Variables
- Variables with modes, like light and dark, set per frame
Make a component
- Select one layer: usually a frame that holds the whole part.
- Right-click it on the board and choose Create component (or press ⌥⌘K). For a shape or a picture, the Create component button beside its name at the top of the right panel does the same.
The layer is now the main component. Components are drawn in purple: in the layers panel, in the inspector and on the board, so you can tell them from ordinary frames at a glance.
Main and instances
There are a few ways to get an instance of a main component:
- Right-click the main and choose Create instance. The instance lands beside it.
- Right-click the main and choose Duplicate, or hold ⌥ and drag it. A copy of a main is always an instance, never a second main.
- Place it from the Assets tab (see Place from Assets), or press ⇧I to open Assets with its search ready.
Select an instance and the inspector's Instance section says which component it is. Its menu (the Instance actions button) has Go to main component, Reset instance and Detach instance; the same three are in the right-click menu. Select a layer inside an instance and a purple line at the top of the inspector says In and the component's name, with Go to main, Reset and Detach.
Go to the main and back
Go to main component (⌃⌥⌘K) selects the main and brings it into view, on whichever page it is. A line at the foot of the board names it, with Return to instance: click it, or press ⌃⌥⌘K again, to go back to the page, the view and the instance you left. Gone to the main from Assets, the button says Go back. The line goes once you select something else, click the empty board or change page; its × hides it.
Change an instance
You can change anything on an instance: its words, fills, strokes, sizes, and which layers show. Each change you make there is an override: that value belongs to the instance from then on. Later edits to the main still reach the instance, except for the values it has made its own.
Where an instance sits, and whether it is locked, are always its own: moving the main never moves its instances.
Reset and detach
- Reset instance drops every override, so the instance matches its main again. Reset specific changes, under it, lists the kinds of change the instance has of its own (Reset fill, Reset text, Reset layout, Reset others…) and puts back one kind at a time, keeping the rest.
- Detach instance turns the instance back into ordinary layers. It keeps how it looks but no longer follows the main.
Variants
Variants are versions of one component: a button that is primary or secondary, small or large, resting or hovered. They live together in a component set, drawn with a dashed purple outline, and each instance can switch between them.
- Combine as variants: select two or more main components that sit side by side (in the same frame, or all on the board), right-click and choose it. Names written as
Size=Large, State=Hoverbecome the values of each property. A name likeButton/Primary/Largemakes a set called Button with a property for each part after the first. - Add variant: right-click a main or a set and choose it, or select the set (or one of its variants) and click the purple + under it. A main that isn't in a set yet becomes a set of two: itself and the new variant.
Select one variant and the inspector shows Current variant: its value for each property. Type a new value or pick one the set already uses. Under a selected set, the board says how many variants it holds.
Hover and pressed in Preview
Give a set a property named State with the values Default, Hover, Pressed, Focus and Disabled (any of them), and its instances react in Preview: pointing at one shows its Hover variant, pressing it its Pressed one, reaching it with Tab its Focus one. Only the variant with the instance's other values (its size, its type) is shown, and nothing is changed in the file. An instance set to Disabled never reacts.
Properties
Properties are the settings an instance offers, so whoever uses the component changes what it is meant to change and nothing else. Select a main or a set, find Properties in the inspector and click + (Create property). There are five kinds:
| Kind | What it does |
|---|---|
| Variant | Chooses between the variants of a set. Added to a single main, it turns the main into a set; added to a set, every variant starts with the value Default. |
| Text | The words of a text layer inside the component, typed on each instance. |
| Boolean | An on/off switch that shows or hides a layer: an icon, a badge, a second line. |
| Instance swap | Which component a nested instance shows: the icon inside a button, say. |
| Slot | A frame inside the component whose layers each instance holds its own: a card's content, a list's items. See Slots. |
Text, Boolean and Instance swap properties each have a Default, which new instances start with. Double-click a property's name to rename it; the − beside it deletes it.
Tie a layer to a property
A property does nothing until a layer inside the main is tied to it:
- Select the layer inside the main component.
- Click the purple diamond in the inspector: in the Text section's heading for its words, the Appearance heading for whether it shows, or the Instance section for a nested instance.
- Pick an existing property of that kind, or Create property to make one from the layer.
Once tied, the property's name shows in a purple pill in place of the diamond. Click it to tie the layer to another property, or choose Detach property.
Nested instances
When a main holds instances of other components, its Properties list them under Nested instances shown on instances. Tick one and every instance of the main shows that nested instance's properties too, under its name, so they can be set without digging into the layers.
Slots
A slot is a place inside a component where each instance holds its own layers. In an instance you add, remove, reorder and edit what is in the slot as in any frame, while the rest of the instance still follows its main.
- Select a frame inside a main (not the main itself) and press ⇧⌘S, or choose Convert to slot in the right-click menu or the Slot section of the inspector. A slot property named after the frame is made; across a set's variants, select the frame in each and convert them together, so they share it.
- What the frame holds in the main is what every instance starts with. Leave it empty for a slot meant to be filled.
- In an instance, draw, paste or drop layers into the slot. Once it holds layers of its own, its row in the Instance section says Modified, and changes to the main's slot no longer reach it; everything else, the slot frame's own look included, still does. The + beside it puts a component in the slot.
Select the slot in an instance for Reset slot (back to the main's layers) and Delete contents. Reset instance resets its slots too, and Reset specific changes → Reset slot content resets only them. Switching variant keeps a slot's layers when the other variant has the slot. Deleting a slot property keeps the frame and puts the main's layers back in every instance.
Swap an instance
To make an instance a different component, select it and pick another component from the menu at the top of its Instance section. It lists the components made in this file under This file, then each library the file uses under its name; a set places its default variant. Variant properties are listed underneath: choose a value and the instance switches to that variant, or to the closest one if no variant has exactly those values.
Or hold ⌥ and click a component in Assets: the selected instance becomes that component, where it is.
Place from Assets
The Assets tab, beside Layers at the top of the left panel (⌥2), works as Layers does: a list on top, as the pages are, and what you pick in it shown under it. The list starts with Created in this file, then, under Libraries, the libraries this file uses: its design system's first, under the system's name, then the ones added to the file and any it already has components from. Under Icons are your workspace's own icons and Kite's free ones (see Drawing tools). Drag the line between the list and the components to make either part taller. A number beside a component says how many variants it has.
- Type in Search components and icons to find a component by its name or a variant's, in every library of the file at once, and icons with it.
- Click a component to place an instance in the middle of your view.
- Drag it onto the board to place it where you drop it, inside the frame under the pointer.
- Right-click a component made in this file and choose Go to main component to go and edit it.
Libraries
A library is a file whose components the rest of your workspace can use. Keep your buttons, cards and icons in one file, publish it, and every other file in the workspace can place them from Assets. When you improve a component, you publish the change and the other files take it when they are ready.
Publish a library
- Make the components in the file.
- In Assets, click Publish on the Created in this file row.
Edits to the main components stay in this file until you publish them: Publish shows on the row again once something has changed, and clicking it makes a new version. Right-click the row and choose Unpublish to take it out of the workspace's libraries: files that already placed its components keep them as they are, and get no more updates from it.
To use another library of the workspace, click + (Add a library) beside Libraries in Assets and pick it: each is listed with how many components it has. Right-click a library for Open the library, which opens its file in a new tab, or Remove from this file to take it off again. A library whose components are placed in the file, or the one its design system brings, stays.
A design system can have a library too: its logos and parts, listed first in Assets, under the system's name, in every file that uses it.
Take updates
When a library publishes a newer version of a component you placed, an Update button with a blue dot shows beside the library in Assets. Click it to bring them up to date in one step. A message says how many instances were updated, with Undo if you change your mind. Your overrides are kept, and so is anything you put inside an instance yourself.
On an instance from a library, Go to main component opens the library's file on its original, in a new tab. Reset instance puts it back to the library's component as published now.
Who can use a library
- Anyone who can edit a file can publish it as a library, or publish its changes.
- Members of the workspace can place from its libraries, as long as they can open the library's file. A library whose file is set to Invite only is only offered to its owner and the workspace's owners. See Sharing.
- People invited to one file from outside the workspace don't see the workspace's libraries.
Components and agents
Agents can make and use components too. With Build with components on, a part that repeats across screens, like a nav, becomes one component, so you edit it once; agents take longer to draw that way. It is off by default. Turn it on for every file under Settings → Agents, or for one file from Agents in this file, the button beside the people at the top right of the editor. See Working with agents.
Bring your components from code
An agent working in your codebase, like Claude Code, Codex or Cursor, can bring your code's components into Kite. Ask it: "Bring our buttons and cards into this Kite file." Each one is drawn as your code draws it, and its props become its properties, with the same names and values. For a whole library, the agent lists what it found and asks before it starts.
- Select one and the inspector's Code section shows the file it lives in and the name it is exported under.
- Copy as React on a screen built with them imports them from your codebase, rather than writing them again. See Copy as HTML, React or Tailwind.
- When the code changes, ask the agent to bring the component in again: it changes the main in place, so every instance keeps its own values.