Documentation / Component editor and recipes
Component editor and recipes
Customize any catalog component and install its scoped recipe.
1. Choose a component
Open the component editor and pick one of the 63 catalog components. To switch while editing, open the component's name in the top bar: it lists every editor, with search, Browse all components and this guide. Each component has its own local draft. Fresh drafts start in Ombelle; a saved draft restores its own family and edits.
A recipe is an independently installed instance, with content, props, and supported visual overrides. It does not replace your global preset. Ordinary component installation supports both Radix and Base UI; recipe installation currently supports Radix only.
2. Customize content and appearance
- Choose a style family. Liquid Glass also offers a glass preset and material controls.
- Edit the component’s content and props. Controls are specific to the selected component, including its parts and supported variants.
- Adjust supported appearance values. Empty overrides inherit from the referenced preset, and each empty field shows the value the preview renders, colours included; use resets to return to those values.
- Use Undo and Redo to compare changes.
The Button editor includes text, variant, size, type, disabled/loading behavior, icons, colors for supported states, and bounded geometry and shadow controls. Other editors expose the props, content, and part styling supported by their component schema. The editor does not accept arbitrary executable JSX or CSS.
3. Check states and generated artifacts
Inspect Light/Dark modes and Wide/Narrow previews. Preview layout: Matrix shows your recipe across its variants, with your edits in every cell; choose the Rows and Columns axes, and the current cell is marked. The Button editor also offers forced states such as hover, focus, active, disabled, and loading, also shown as a row of the Button matrix; these are preview controls. In Generated output, Changes shows what your edits change in each file against the catalog default, and Get code sums it up. Interact with other components to check menus, dialogs, selection, and focus behavior.
Open the Code panel to inspect generated usage, component source, scoped CSS, dependencies, and recipe JSON. If a field is invalid or compilation is pending, correct the error and wait for current output before downloading or publishing.
4. Download or publish, then install
- Choose More actions → Download recipe JSON, or use the JSON download offered by Get code.
- Save the downloaded file in an initialized Radix app. Replace the example filename below with your download’s actual name.
- Run
add --recipe, review the plan, and accept it. - Use the generated usage example to import the new scoped component.
pnpm dlx @ombelle-ui/cli@1.1.2 add --recipe ./my-recipe-r1.jsonUse Get code if you want an exact public rc_…@1 reference instead of a local file. A Button uses recipe schema 1.0; the other catalog components use schema 2.0. The current installer accepts both. Scoped source and styles install beside ordinary components, leaving global defaults intact.
Reset, revisions, and ownership
Recipe IDs and revisions identify installed content. For changed content under an already installed identity, increase the JSON revision before reinstalling; some catalog identity controls are read-only in the editor. Modified installed source is protected by conflict checks.
Reset recipe is undoable. In the Button editor it restores starting content and props while keeping the current family and identity. Other component editors return to a fresh recipe for that component. Download a backup before resetting or clearing browser storage.