Rule builder preview
Define controlled IF conditions and ordered THEN actions without executing an automation.
pro · Blocks · composite
When to use
- Use it when a page needs define controlled if conditions and ordered then actions without executing an automation.
- Choose it inside an authenticated product surface when the host application owns routing, persistence, and service calls.
Alternatives
- Choose empty-state instead when empty collections, search results and errors with a clear next action is the actual interface need, rather than rule builder.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/rule-builderImport components/ui/tidal.css, components/ui/rule-builder.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/rule-builder.css";
import{TidalRuleBuilder}from"./components/ui/rule-builder";
export default(p:Parameters<typeof TidalRuleBuilder>[0])=><div className="tidal-scope"><TidalRuleBuilder {...p}/></div>;API and props
TidalRuleBuilder.actionDefinitions (required)ReadonlyArray<TidalRuleActionDefinition>Required action definitions value accepted by this exported component.
TidalRuleBuilder.actions (required)ReadonlyArray<TidalRuleAction>Required actions value accepted by this exported component.
TidalRuleBuilder.conditions (required)TidalRuleConditionConfigRequired conditions value accepted by this exported component.
TidalRuleBuilder.createAction (required)(event: MouseEvent<HTMLButtonElement>) => TidalRuleActionRequired create action value accepted by this exported component.
TidalRuleBuilder.onActionsChange (required)(next: readonly TidalRuleAction[], change: TidalRuleActionChange, event: ActionEvent) => voidCallback invoked when the actions change interaction is proposed.
TidalRuleBuilder.title (required)ReactNodeRequired title value accepted by this exported component.
TidalRuleBuilder.actionErrorsReadonly<Record<string, ReactNode>> | undefinedOptional action errors value accepted by this exported component.
TidalRuleBuilder.addActionButtonPropsNativeButtonProps | undefinedOptional add action button props value accepted by this exported component.
TidalRuleBuilder.addActionButtonRefRef<HTMLButtonElement> | undefinedOptional add action button ref value accepted by this exported component.
TidalRuleBuilder.descriptionReactNodeOptional description value accepted by this exported component.
TidalRuleBuilder.disabledboolean | undefinedOptional disabled value accepted by this exported component.
TidalRuleBuilder.emptyActionsReactNodeOptional empty actions value accepted by this exported component.
TidalRuleBuilder.getActionControlProps((action: TidalRuleAction, index: number) => TidalRuleActionControlProps | undefined) | undefinedOptional get action control props value accepted by this exported component.
TidalRuleBuilder.headingLevel"h2" | "h3" | "h4" | "h5" | undefinedOptional heading level value accepted by this exported component.
TidalRuleBuilder.labelsPartial<TidalRuleBuilderLabels> | undefinedOptional labels value accepted by this exported component.
TidalRuleBuilder.namePrefixstring | undefinedOptional name prefix value accepted by this exported component.
TidalRuleBuilder.onSubmit((event: FormEvent<HTMLFormElement>) => void) | undefinedCallback invoked when the submit interaction is proposed.
TidalRuleBuilder.pendingboolean | undefinedOptional pending value accepted by this exported component.
TidalRuleBuilder.submitButtonPropsNativeButtonProps | undefinedOptional submit button props value accepted by this exported component.
TidalRuleBuilder.submitButtonRefRef<HTMLButtonElement> | undefinedOptional submit button ref value accepted by this exported component.
TidalRuleBuilder.submitLabelReactNodeOptional submit label value accepted by this exported component.
TidalRuleBuilder.summaryReactNodeOptional summary value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.