@iulik1kkk/atomic-ui
v1.0.13
Published
A collection of reusable UI components built with React and Tailwind CSS.
Readme
@iulik1kkk/atomic-ui
A collection of reusable UI components built with React and Tailwind CSS.
Installation
npm install @iulik1kkk/atomic-uiUsage
After installation, run the following command to add the components to your project:
npx atomic-uiThis will:
- Create a
src/components/uidirectory if it doesn't exist - Create a
src/components/ui/libdirectory with utility functions - Copy all component files to your project
- Set up the necessary dependencies
- Configure Inter font for your project
The command will automatically:
- Set up the Inter font configuration
- Create/update your
src/app/layout.tsxto use the Inter font - Add all necessary font utilities
Then you can use the components in your project:
// components/ui/Button.tsx
import { Button } from "@iulik1kkk/atomic-ui";
export default function MyButton() {
return (
<Button variant="default">
Click me
</Button>
);
}Available Components
Button
A versatile button component with multiple variants.
import { Button } from "@iulik1kkk/atomic-ui";
// Default variant
<Button>Click me</Button>
// Secondary variant
<Button variant="secondary">Click me</Button>
// Destructive variant
<Button variant="destructive">Delete</Button>
// Outline variant
<Button variant="outline">Click me</Button>
// Ghost variant
<Button variant="ghost">Click me</Button>
// Link variant
<Button variant="link">Click me</Button>Input
A flexible input component with various styles and states.
import { Input } from "@iulik1kkk/atomic-ui";
// Default input
<Input placeholder="Enter your name" />
// With error state
<Input error placeholder="Invalid input" />
// Different variants
<Input variant="destructive" placeholder="Error input" />
<Input variant="ghost" placeholder="Ghost input" />
// Different sizes
<Input size="sm" placeholder="Small input" />
<Input size="lg" placeholder="Large input" />
// With type
<Input type="email" placeholder="Enter your email" />
<Input type="password" placeholder="Enter your password" />Development
- Clone the repository
- Install dependencies:
npm install - Build the package:
npm run build - Link the package locally:
npm link - Test in your project:
npm link @iulik1kkk/atomic-ui
