gpdesign
v3.2.11
Published
**GP Design** is a UI component library built with **React + TypeScript**, designed to offer a solid, accessible, and consistent foundation for modern web projects.
Readme
🧚♀️ GP Design – UI Component Library for React 🥰
GP Design is a UI component library built with React + TypeScript, designed to offer a solid, accessible, and consistent foundation for modern web projects.
Created and maintained by Giulia Puntoni, this library provides a modular and complete Design System ready to use.
🚀 Key Features
- ✅ Accessible and fully typed components (TypeScript)
- 🎨 Styling via CSS Modules
- ⚙️ Lightweight setup based on Vite
- 📚 Documentation powered by Storybook v8
- 🧪 Test-ready with
data-testidattributes (e.g., Playwright)
📦 What’s Inside
🧱 Base Components
Reusable UI elements, including:
- Form Elements: Button, Input, Checkbox, Radiobox, Select, Switch, TextArea, TextField
- UI Elements: Accordion, Alert, Dialog, Avatar, Tag, Toast, Divider, Hint, ListItem
🧰 Utility Components
- Layout Helpers: Flex, Row, Column
- Interactive Menus: DropdownMenu
🧾 Foundations & Tokens
- Typography: Variants like Display, Heading, Body, etc.
- Colors, Spacing, Shadows, Radii, Semantic constants
- Centralized Icon System
🛠️ How to Use
- Install the package:
npm install gpdesign
# or
yarn add gpdesign- Import the global CSS file (required):
import "gpdesign/dist/index.css";- Use the components:
import { Button } from "gpdesign";
<Button label="Click me" onClick={() => console.log("Clicked")} />;💡 Best Practices
- 🔹 Always assign unique
ids to interactive components - 🔹 Use
handleChangefor controlled components - 🔹 Add
aria-labelif no visible label is provided
📖 Documentation
The full documentation is available via Storybook. To run it locally:
npm run storybook
# or
yarn storybookMake sure to install dependencies first (npm install or yarn).
👩🏻💻 About the Author
- Developed by Giulia Puntoni
- GitHub
✨ If you use this library in a project, let me know!
🖖🏻 Happy coding!
