HextaUI provides modern, responsive, and customizable UI components for Next.js. Copy, adapt, and personalize them to build beautiful web interfaces with ease.
-
Clone the repository:
git clone https://github.com/preetsuthar17/HextaUI.git
-
Navigate into the project directory:
cd HextaUI
-
Install the dependencies:
npm install
-
Start the development server:
npm run dev
-
Open in your browser:
Visit http://localhost:3000
Create a .env.local
file at the root and add:
NEXT_PUBLIC_GITHUB_TOKEN=your_github_token
👉 How to create a GitHub token
components/
library/
category-1/
Component1.tsx
Component2.tsx
Component3.tsx
category-2/
Component1.tsx
Component2.tsx
Component3.tsx
content/
docs/
category-1/
component-1.mdx
component-2.mdx
component-3.mdx
category-2/
component-1.mdx
component-2.mdx
component-3.mdx
Add your new component in the appropriate category:
components/library/<category>/Component1.tsx
If unsure which category fits, search the component name online for context.
Example:
"use client";
import * as React from "react";
const Component1 = () => {
return (
<div className="flex flex-col items-center justify-center w-full h-screen">
<h1 className="text-3xl font-bold">Component 1</h1>
<p className="text-lg">This is a sample component.</p>
</div>
);
};
export { Component1 };
Add documentation for your component:
content/docs/<category>/component-1.mdx
Template:
title: Component 1
description: This is a sample component.
new: true
import { Component1 } from "@/components/library/<category>/Component1";
import { PreviewContainer } from "@/components/PreviewContainer";
## Preview
<PreviewContainer>
<Component1 />
</PreviewContainer>
## Installation
```bash tab="CLI" title="NPM"
{/* Leave this blank */}
```
```tsx tab="Manually" title="Component1.tsx"
// Paste the full code of your component here
```
## Usage
```tsx title="App.tsx"
// Example usage of the component
```
Chánh Đại 🐛 💻 |
This project is licensed under the MIT License.