Quick start
Add a component to a React project, then import and customize it from your own code.
Set up a coding agentOn this page
Set up your license key
To install components, use your Interfaces DS license. Starter includes base UI and themes for one project. Individual and Team also include AI components, MCP, Skills and Agent downloads. Already purchased? Recover your license key in the Polar customer portal. Team members claim their assigned seat first.
Set INTERFACES_DS_LICENSE_KEY in your shell or in a gitignored .env.local at the project root. Keep the placeholder in the registry configuration below. Never paste the key into source code or agent prompts.
Prepare your project
Start from a React project with Tailwind CSS 4. If the project already has a components.json, open it and continue to the registry step. Otherwise, initialize the shadcn CLI in your project directory.
npx shadcn@latest initConnect the private registry
Connect this project to https://docs.interfacesds.com using the full URL shown below, including {name}. In components.json, add the registries field at the top level. If the field already exists, add only the @interfaces-ds entry inside it. Keep your existing aliases and other registries.
For a global stylesheet in app/ or src/app/.
{
"registries": {
"@interfaces-ds": {
"url": "https://docs.interfacesds.com/r/{name}.json",
"headers": {
"Authorization": "Bearer ${INTERFACES_DS_LICENSE_KEY}"
}
}
}
}Add a button
npx shadcn@latest add @interfaces-ds/buttonThe CLI copies the component into the directory configured by your UI alias. It also resolves the style and utility entries declared by the component. The example below uses the @/components/ui alias.
"use client"
import { Button } from "@/components/ui/button"
export function PrintButton() {
return (
<Button type="button" onClick={() => window.print()}>
Print page
</Button>
)
}Render PrintButton on a page and press it to open the print dialog. Use the Button reference for supported sizes and variants.
Use the Dashboard theme
To match these examples, install the Dashboard theme and set data-ids-theme="dashboard" on html. See the control sizes and surface rules when combining components.
npx shadcn@latest add @interfaces-ds/dashboard-style