Skip to main content
We’ve built UI components and hooks so you can add shopping experiences to your app without starting from scratch. The library is open source and installs through the shadcn registry. That means each component lands in your repo as regular source code you can edit. Two ready-made blocks cover most apps. If you need more control, you can use the smaller building blocks or the headless hooks below.

channel3-ai/channel3-ui

Full catalog, install commands, and contributor guide on GitHub.

Install

This copies all components into your components/ folder. They work directly with the Channel3 SDK — pass in a ProductDetail from search or a product fetch with no extra mapping step.

Blocks

Two all-in-one blocks cover most shopping UIs: A full search page in one component: search bar, filters (brand, category, color, price), and a results grid that loads more as you scroll.
You pass in your own server-side fetch function. The component never sees your API key.

product-details

A full product page: image gallery, variant picker (with in-stock and out-of-stock states), merchant offers, price history chart, and a similar-products carousel.

Building blocks

Every part of the blocks above is also available on its own:

Hooks

The hooks handle the logic behind the UI. Use them with your own markup when the default components don’t match your design. Tracks the search query, filters, and pagination. Returns results, a loading flag, and functions to update filters or load more.

use-variant-selection

Handles variant picking: which options are available, which combinations exist, and what happens when the user changes a selection. Returns the current selected state after each server call — you don’t have to compare the request and response yourself.

use-async-options

Loads category and brand filter options when needed, so filter panels stay fast even with large catalogs.

How it fits together

Components take Channel3 data as props and call your callbacks when the user does something. They don’t call the API or read your key themselves. Fetch on your server where CHANNEL3_API_KEY lives, then pass the results down. That keeps your key safe and makes each component easy to test on its own.

Quickstart

Install the Channel3 skill and let your agent wire the components in for you.