sekerbura
v1.0.2
Published
sekerbura - A custom component library CLI. Add beautiful, minimalist components to your project with a single command.
Downloads
240
Maintainers
Readme
sekerbura - Component CLI Library
A professional, self-contained CLI tool for distributing minimalist React components.
https://sekerbura.vercel.app/
Installation
npm install -g sekerburaOr use directly with npx:
npm sekerbura add buttonQuick Start
1. Initialize sekerbura (Optional)
npm sekerbura initThis will:
- Create
src/lib/utils.tswith thecn()utility - Install core dependencies (clsx, tailwind-merge, class-variance-authority)
2. Add Components
npm sekerbura add button
npm sekerbura add cardThis will:
- Create the component in
src/components/sekerbura/<component>.tsx - Auto-detect your project type (Next.js/Vite)
- Install missing dependencies
- Show import instructions
3. Use in Your Code
import { Button } from "@/components/sekerbura/button";
export default function App() {
return <Button variant="default">Click me</Button>;
}Available Components
- button - Minimalist button with variants: default, secondary, outline, ghost, destructive, link
- card - Clean card component with CardHeader, CardTitle, CardDescription, CardContent, CardFooter
- input - Text input field with focus ring and accessibility
- textarea - Multi-line text input with resizable option
- select - Dropdown select component
- badge - Label badges with variants: default, secondary, outline
- alert - Alert component with AlertTitle and AlertDescription
- avatar - Image wrapper with fallback support
- checkbox - Custom styled checkbox
- switch - Toggle switch
- label - Standard accessible label
- skeleton - Loading placeholder animation
View all available components:
npm sekerbura listCLI Commands
npx sekerbura add <component>
Add a component to your project.
npm sekerbura add button
npm sekerbura add cardnpx sekerbura list
List all available components.
npm sekerbura listnpx sekerbura init
Initialize sekerbura in your project (creates utils, installs dependencies).
npm sekerbura initProject Structure
After adding components, your project structure looks like:
your-project/
├── src/
│ ├── components/
│ │ └── sekerbura/
│ │ ├── button.tsx
│ │ └── card.tsx
│ ├── lib/
│ │ └── utils.ts # cn() utility created automatically
│ └── ...
├── package.json
└── ...Supported Frameworks
- Next.js (App Router and Pages Router)
- Vite + React
- Any project with Tailwind CSS
Supported Package Managers
- npm
- yarn
- pnpm
The CLI automatically detects which package manager you're using based on lock files.
Requirements
- Node.js >= 14.0.0
- Tailwind CSS configured in your project
- React (v16.8+)
- TypeScript (optional but recommended)
Automatic Dependencies
sekerbura automatically installs and manages these dependencies:
clsx- Utility for constructing className stringstailwind-merge- Merge Tailwind CSS classes without conflictsclass-variance-authority- Create component variants
How It Works
- Environment Detection - Detects your project type and structure
- Utils Creation - Creates
lib/utils.tswithcn()utility if needed - Dependency Check - Identifies missing dependencies
- Auto Install - Installs missing deps using your package manager
- Component Generation - Creates the component file in the correct location
- Import Guide - Shows you how to import and use the component
License
MIT - Built by Hummat Azim
