- Same as code — Components in Subframe are the same building blocks your engineers use
- Always in sync — When you update a component, all instances update and sync to code
- Interactive when needed — Some components like checkboxes and accordions have built-in interaction logic using
@subframe/core, our Radix-based headless component library. Learn more about headless components.
Creating components from scratch

- Navigate to Components in navbar
- Click New component
- Choose one of:
- Remix an existing prebuilt component
- Create from scratch
Some prebuilt components are based off of Radix primitives. If you want interactive logic like checked state, you must
remix an existing prebuilt component.
Creating components from existing designs

- Right-click or press / to open quick actions
- Select Create component
- Name your component
- Review AI-suggested properties
- Click Create
Editing components
To edit a component you can either:- navigate to Components, click on the component, click on Edit component button
- Right-click or press / to open quick actions, select Edit component
Adding component instances
You can add a component instance by- Open the quick insert menu
- Select the component you want to add
Detaching component instances
You can detach a component so the rendered elements are no longer linked to the component.- Right-click or press / to open quick actions
- Select Detach component
Not all components can be detached; interactive components built on Radix (like accordions, checkboxes, etc) cannot be
detached.
Component docs

Exporting components to code

- Click Code
- Select Inspect
- Copy and paste the
npx @subframe/clicommand
Importing from another project
- Go to Components
- Click Import from… button
- Select Another project

