gpdesign
TypeScript icon, indicating that this package has built-in type declarations

3.2.11 • Public • Published

🧚‍♀️ 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-testid attributes (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

  1. Install the package:
npm install gpdesign
# or
yarn add gpdesign
  1. Import the global CSS file (required):
import "gpdesign/dist/index.css";
  1. 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 handleChange for controlled components
  • 🔹 Add aria-label if no visible label is provided

📖 Documentation

The full documentation is available via Storybook. To run it locally:

npm run storybook
# or
yarn storybook

Make sure to install dependencies first (npm install or yarn).


👩🏻‍💻 About the Author


✨ If you use this library in a project, let me know!
🖖🏻 Happy coding!

Readme

Keywords

none

Package Sidebar

Install

npm i gpdesign

Weekly Downloads

437

Version

3.2.11

License

ISC

Unpacked Size

18.8 MB

Total Files

116

Last publish

Collaborators

  • giuliapuntoni