Save 45% with Pro Annual: $79/yearSee Pro plans

Next.js Installation

Add a Dot component to your Next.js app in four steps. Each component is one React file that lives in your project, so you can change anything.

1

Create a project

Skip this if you already have a Next.js app.

Terminal
$ npx create-next-app@latest my-app
2

Set up the CLI (once per project)

Run this in your project folder and accept the defaults. Skip it if your project already has a components.json file.

Terminal
$ npx shadcn@latest init
3

Add a component

This saves the component to components/dot/ and installs the packages it needs. Every component page has its own command under CLI.

Terminal
$ npx shadcn@latest add @dot/ascii-footer
4

Use it

Import it like any other React component.

app/page.tsx
import { AsciiFooter } from "@/components/dot/ascii-footer";

export default function Page() {
  return <AsciiFooter brand="Acme" tagline="Software for modern teams." />;
}

Rather not run commands? Copy and paste the code instead. Using an AI editor? Connect Dot MCP and just ask for a component.