Welcome to my custom styled component library built with shadcn/ui and TailwindCSS. This library provides a collection of reusable UI components that are styled with TailwindCSS to ensure a consistent and modern design. Developed using Vite, this library is optimized for rapid development and efficient bundling. Components can be easily previewed and tested with Storybook.
Before you start, ensure you have the following installed:
- Node.js (v18.18.0 or higher)
- npm (v10.0.0 or higher)
To use the component library in your project, you need to install it via npm or yarn:
npm install @ppxa/ui
# or
yarn add @ppxa/ui
# or
pnpm add @ppxa/ui
After installation, you can import and use the components in your React projects like this:
import { Button } from '@ppxa/ui'
function App() {
return (
<>
<Button variant='primary'>Click me</Button>
<Button variant='dangerous'>Warning!</Button>
</>
)
}
export default App
- To set up the development environment, follow these steps:
git clone git@github.com:xichen1/ppxa-ui.git
cd ppxa-ui
- Install the dependencies:
pnpm install
- Start the storybook server:
pnpm run storybook
To build the library, run the following command:
pnpm run build
This project is licensed under the MIT License - see the LICENSE file for details.