Basic UI
  • Docs
  • Compressor
  • Parser
Getting Started
  • Introduction
  • Themenew
Components
  • Button
  • Button Group
  • Badge
  • Radio Group
  • Checkbox
  • Avatar
  • Label
  • File Dropzone
  1. Docs/
  2. Introduction

Introduction

Next page

Welcome to the component documentation

Introduction

Welcome to the component documentation. This is a sample documentation page built with Fumadocs.

Getting Started

You can start creating your own documentation by adding MDX files to the content/docs directory.

Features

  • Fast: Built with Next.js and Fumadocs
  • Markdown Support: Write your docs in MDX
  • Syntax Highlighting: Code blocks with syntax highlighting
  • Responsive: Works on all devices

Usage

File Configuration

  1. add .npmrc file to the root of the project, such as:
@pandapro-project:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=
Next
Theme

On This Page

IntroductionGetting StartedFeaturesUsageFile ConfigurationInstall the componentUse the component
${GITHUB_AUTH_TOKEN}

Note: The GITHUB_AUTH_TOKEN is the token for the GitHub package registry. You can get it from the GitHub settings.

  1. Configure the basic ui theme
  • install the basic ui preset
pnpm add @pandapro-project/tailwind-basic-ui-preset -D
  • configure the tailwind.config.ts file
import type { Config } from "tailwindcss"
 
const config: Config = {
  content: [
    "./app/**/*.{ts,tsx}",
    "./components/**/*.{ts,tsx}",
    "./registry/**/*.{ts,tsx}",
    "./content/**/*.{md,mdx}",
  ],
  theme: {
    extend: {},
  },
  presets: [require("@pandapro-project/tailwind-basic-ui-preset")],
}
 
export default config
  • add basicui.config.mjs file to the root of the project, such as:
export default {
  entry: "app/style/basic.ui.scss",
}
  • add basic.ui.scss file to the app/style directory, such as:
:root {}
 
.dark {}
 
  • add generate command to the package.json file
{
  "scripts": {
    "generate:basicui": "npx basicui generate",
    "build": "pnpm generate:basicui && next build --turbopack",
  },
  "simple-git-hooks": {
    "pre-commit": "npm run generate:sitemap"
  }
}
 
  • run the generate command then restart the IDE
pnpm generate:basicui
  1. add components.json file to the root of the project, such as:
{
  "$schema": "https://ui.shadcn.com/schema.json",
  "style": "basic-ui",
  "rsc": true,
  "tsx": true,
  "tailwind": {
    "config": "",
    "css": "app/globals.css",
    "baseColor": "neutral",
    "cssVariables": true,
    "prefix": ""
  },
  "iconLibrary": "lucide",
  "aliases": {
    "components": "@/components",
    "utils": "@/lib/utils",
    "ui": "@/components/ui",
    "lib": "@/lib",
    "hooks": "@/hooks"
  },
  "registries": {
    "@basic-ui": "https://uineo.dev/r/{name}.json"
  }
}

Install the component

pnpm dlx shadcn@latest add @basic-ui/checkbox

Use the component

import { Button } from '@basic-ui/button';