Getting Started
Overview
Welcome to ProjectX! This guide will walk you through setting up the library, installing dependencies, and building your first component.
Installation
ProjectX is available via npm. Run the following command in your project directory:
npm install projectx@latest
If you prefer Yarn:
yarn add projectx@latest
Quick Start
Create a simple component by adding the following file:
/* src/App.jsx */
import React from 'react';
import { Button } from 'projectx';
export default function App() {
return (
<div style={{ padding: '2rem' }}>
<h1>Welcome to ProjectX</h1>
<Button onClick={() => alert('Clicked!')}>Click Me</Button>
</div>
);
}
Run the development server:
npm run dev
Next Steps
- Explore the Component Library for more UI elements.
- Read the Theming Guide to customize styles.
- Check out the API Reference for advanced usage.