sparklesGuide: Vibe Code Custom Components with Claude Code

Overview

Custom components let you extend Limio’s UI beyond the standard offering - think product-specific onboarding steppers, branded pricing displays, or checkout subcomponents.

With Claude Code and the Limio Component Skill, you can generate production-ready components from natural language prompts. The Limio Component Skill encodes Limio conventions, component scaffolding, and SDK usage patterns.

Prerequisites

  • Claude Code subscription (or Cursor/similar AI coding tool)

  • Access to your organization’s component repo (Getting Started Guide)

  • CI/CD Pipeline setup, if you are using GitHub or GitLab ( Connecting External CI)

  • Storybook configured for local preview (optional but recommended)

  • Node.js installed

  • npm/yarn/pnpm depending on repo

What you’ll build

  1. Install the Limio Component Skill into Claude Code

  2. Write a prompt describing your component requirements

  3. Push to GitHub via your CI/CD pipeline

  4. Preview in Storybook to validate the component

  5. Deploy to Page Builder for use in Limio pages

Install the Limio Component Skill

The skill teaches Claude Code how to build Limio-compatible components. Run this in your terminal:

Once installed, Claude Code understands:

  • Component file structure and package.json dependencies

  • Limio SDK methods and patterns

  • Design system integration (Tailwind, Material Design, custom CSS)

You may already have this. You can check by asking Claude:

Write your component prompt

Be specific about functionality, design, and data sources. Reference design systems or existing patterns.

Example: Order completion stepper

Claude will typically inspect existing components in the repository before generating code, in order to match structure, SDK usage, and styling conventions. This is expected and improves compatibility with your build pipeline. For example, Claude will usually define configurable Page Builder props via limioProps in the component’s package.json, based on patterns it finds in similar components.

Push via CI/CD pipeline

Once Claude Code generates the component, push to your repo. The CI/CD pipeline handles build validation.

The pipeline will:

  • Run linting and type checks

  • Validate the component builds successfully and that all imported dependencies are declared in its package.json.

  • Build the component bundle

Preview in Storybook

Before deploying to Limio's Page Builder, validate your component locally:

(or the Storybook command defined in your repo, e.g. npm run limio)

Storybook lets you:

  • See the component with mock data

  • Test different SKU scenarios

  • Verify responsive behavior

If Storybook isn’t configured, ask Claude Code:

Mocked-up vibe-coded component in Storybook

Iterate with Claude Code

You can add more functionality to your component. For example to add more configurable props to the Page Builder:

You could also make sure to manage certain states more granularly:

Or:

Deploy to Page Builder

Once your PR is merged and the build passes:

  1. Open Limio Page Builder

  2. Navigate to your target page (e.g., Order Complete)

  3. Add your new component from the component library

  4. Configure any required props

  5. Publish

Vibe-coded custom component visible in the Page Builder with Props in the side panel

Design system integration

You can specify your design system in the prompt:

Tailwind:

Custom CSS:

Figma reference:

Tips & troubleshooting

  • Build failing? Check that your component uses only public SDK methods. Run the repo’s local build or validation script (e.g. npm run build or npm run validate).

  • Storybook not loading? Ensure dependencies are installed: npm install

  • Component not appearing in Page Builder? Ensure the component is exported correctly (typically via the component entrypoint file).

  • Styling issues? Claude Code picks up existing patterns—provide explicit design guidelines if the output doesn’t match expectations.

  • Token usage high? Use --dangerously-skip-permissions flag to reduce confirmation prompts (use with caution).

Example use cases

Component
Description

Pricing page display

Custom offer cards with your brand styling

Order complete stepper

Product-specific onboarding instructions

Checkout subcomponent

Custom fields

Update subscription offers

Display upgrade/downgrade options

“Best offer” badge

Dynamic labeling based on offer attributes

circle-info

We are actively improving this experience. Please reach out to [email protected] if you hit any issues.

Last updated

Was this helpful?