Skip to content

Repository files navigation

SpatialHub Component Libraries

A collection of React component libraries and utilities used across SpatialHub applications.

Packages

This repository is organized as a monorepo containing the following packages:

  • @spatialhub/ui: Core UI component library built with Tailwind CSS and Radix UI.
  • @spatialhub/auth: Authentication-related components (Login, Register, Forgot Password).
  • @spatialhub/forms: Form utilities and a universal form builder.
  • @spatialhub/i18n: Internationalization support and localization strings.

Usage

Each package is designed to be installed and used independently.

Installation

npm install @spatialhub/ui @spatialhub/auth

Example

import { Button } from "@spatialhub/ui";
import { LoginForm } from "@spatialhub/auth";

export const MyPage = () => (
  <div>
    <LoginForm onSubmit={handleLogin} />
    <Button variant="outline">Cancel</Button>
  </div>
);

Development

Most packages use tsup for bundling and typescript for type safety.

# Install dependencies
npm install

# Build all packages
npm run build

License

See the LICENSE file for details.

About

A set of components for Spatialhub UI, currently utalized by EnerPlanET

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages