Skip to main content
v7

Getting Started

Modern React components for building high-performance web interfaces. Accessible, customizable, and developer-friendly.

Package@g4rcez/componentsSectionIntroduction

Overview

Welcome to the documentation! `@g4rcez/components` is a library of high-quality React components designed to help you build beautiful, accessible web applications faster than ever.

Installation

Install the library with your preferred package manager. It needs React 18 or newer and zod 4. Icons and animation libraries come with the package, so you do not install them yourself.

Terminal
bash
pnpm add @g4rcez/components zod

Then import the CSS in your app stylesheet. `foundation.css` comes first, followed by the CSS of each component you use. Run `npx csscomponents --css src/app.css` to add these imports for you.

app.css
css
@import "@g4rcez/components/foundation.css";
@import "@g4rcez/components/button.css";

Quick Example

Here's a simple example of how to use our components. We'll trigger a notification using the `useNotification` hook.

Interactive Demo

Our components use Motion for physically-accurate animations. Try triggering a system notification.

Why this library?

TypeScript Native

Every component is strictly typed with full IntelliSense support and zero 'any' patterns.

A11y Compliant

Follows WAI-ARIA patterns, built on Base UI primitives.

Theming System

Powered by CSS variables and design tokens. Effortless dark mode and customization.

Tree Shakable

Import only what you use. Minimal impact on your bundle size and lighthouse scores.