Skip to content

Modern, responsive, and customizable UI components for Next.js. Copy, adapt, and personalize them.

License

Notifications You must be signed in to change notification settings

preetsuthar17/HextaUI

Repository files navigation

🌟 Build Stunning Websites Effortlessly

All Contributors

HextaUI provides modern, responsive, and customizable UI components for Next.js. Copy, adapt, and personalize them to build beautiful web interfaces with ease.

Repobeats analytics image

🚀 Getting Started

🛠️ Run Locally

  1. Clone the repository:

    git clone https://github.com/preetsuthar17/HextaUI.git
  2. Navigate into the project directory:

    cd HextaUI
  3. Install the dependencies:

    npm install
  4. Start the development server:

    npm run dev
  5. Open in your browser:

    Visit http://localhost:3000

🔐 Environment Variables

Create a .env.local file at the root and add:

NEXT_PUBLIC_GITHUB_TOKEN=your_github_token

👉 How to create a GitHub token

📁 Project Structure

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

🧱 Adding a New Component

1. Create Component File

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 };

2. Create Documentation File

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
```

👥 Contributors

Chánh Đại
Chánh Đại

🐛 💻

📜 License

This project is licensed under the MIT License.

⭐ Star History

Star History Chart

About

Modern, responsive, and customizable UI components for Next.js. Copy, adapt, and personalize them.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •