0.3.15 • Published 9 months ago

@totango-app-team/totango-ui v0.3.15

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

Totango UI Library

//TODO: Migrate to this in the future: https://github.com/web-infra-dev/rslib

This project is a React component library built with TypeScript, Vite, and Material-UI. It provides a set of reusable UI components and utilities for building Totango applications.

Features

  • React components built with Material-UI
  • TypeScript support
  • Vite for fast development and building
  • Storybook for component documentation and testing
  • Modular exports for flexible usage

Getting Started

Running Storybook

To start Storybook and view the component documentation:

  1. Make sure you have all dependencies installed:

    npm install
  2. Run the following command:

    npm run storybook
  3. Open your browser and navigate to http://localhost:6006 to view the Storybook interface.

Local Development with other Repos:

  1. Run the following command to start vite in watch mode:

    npm run build:watch
  2. Create a link to the library in the other repo:

    npm link
  3. Run the following command in the other repo to link to the library:

    npm link @totango-app-team/totango-ui

Using the UI Library

To use the UI library in your project, follow these steps:

  1. Install the library:

    npm install @totango-app-team/totango-ui
  2. Import the theme first thing in your entry file (before your app root):

    import { ThemeProvider } from '@totango-app-team/totango-ui/themes';
  3. You can then import and use the components in your project from the corresponding folder it's exported from:

    import { Button } from '@totango-app-team/totango-ui/ui';
  4. If you want to use the core components from MUI that haven't been modified (like ThemeProvider, GlobalStyles, etc.), you can import them from the @totango-ui/core folder:

    import { ThemeProvider } from '@totango-app-team/totango-ui/core';
0.2.27

9 months ago

0.2.26

9 months ago

0.2.25

9 months ago

0.2.24

9 months ago

0.2.23

9 months ago

0.2.22

9 months ago

0.2.21

9 months ago

0.2.20

9 months ago

0.2.19

9 months ago

0.2.18

9 months ago

0.2.17

9 months ago

0.2.16

9 months ago

0.2.15

9 months ago

0.2.14

9 months ago

0.2.13

9 months ago

0.2.12

9 months ago

0.2.11

9 months ago

0.2.10

9 months ago

0.3.6

9 months ago

0.3.5

9 months ago

0.3.8

9 months ago

0.3.7

9 months ago

0.3.2

9 months ago

0.3.1

9 months ago

0.3.4

9 months ago

0.3.3

9 months ago

0.3.9

9 months ago

0.3.15

9 months ago

0.3.14

9 months ago

0.3.13

9 months ago

0.3.12

9 months ago

0.3.11

9 months ago

0.3.10

9 months ago

0.2.7

9 months ago

0.2.6

9 months ago

0.2.9

9 months ago

0.2.5

9 months ago

0.2.1

9 months ago

0.1.148

9 months ago

0.1.129

9 months ago

0.1.128

9 months ago

0.1.139

9 months ago

0.1.136

9 months ago

0.1.135

9 months ago

0.1.138

9 months ago

0.1.137

9 months ago

0.1.132

9 months ago

0.1.131

9 months ago

0.1.134

9 months ago

0.1.133

9 months ago

0.1.130

9 months ago

0.1.146

9 months ago

0.1.143

9 months ago

0.1.142

9 months ago

0.1.145

9 months ago

0.1.144

9 months ago

0.1.141

9 months ago

0.1.140

9 months ago

0.1.118

9 months ago

0.1.119

9 months ago

0.1.125

9 months ago

0.1.124

9 months ago

0.1.127

9 months ago

0.1.126

9 months ago

0.1.121

9 months ago

0.1.120

9 months ago

0.1.123

9 months ago

0.1.122

9 months ago

0.1.117

9 months ago

0.1.114

9 months ago

0.1.113

9 months ago

0.1.116

9 months ago

0.1.115

9 months ago

0.1.110

9 months ago

0.1.112

9 months ago

0.1.111

9 months ago

0.1.97

9 months ago

0.1.98

9 months ago

0.1.99

9 months ago

0.1.107

9 months ago

0.1.106

9 months ago

0.1.109

9 months ago

0.1.108

9 months ago

0.1.103

9 months ago

0.1.102

9 months ago

0.1.105

9 months ago

0.1.104

9 months ago

0.1.101

9 months ago

0.1.100

9 months ago

0.1.96

9 months ago

0.1.90

9 months ago

0.1.91

9 months ago

0.1.92

9 months ago

0.1.93

9 months ago

0.1.94

9 months ago

0.1.85

9 months ago

0.1.86

9 months ago

0.1.87

9 months ago

0.1.88

9 months ago

0.1.89

9 months ago

0.1.80

9 months ago

0.1.81

9 months ago

0.1.82

9 months ago

0.1.83

9 months ago

0.1.84

9 months ago

0.1.74

9 months ago

0.1.75

9 months ago

0.1.76

9 months ago

0.1.77

9 months ago

0.1.78

9 months ago

0.1.79

9 months ago

0.1.72

9 months ago

0.1.73

9 months ago

0.1.70

9 months ago

0.1.71

9 months ago

0.1.69

9 months ago

0.1.52

10 months ago

0.1.53

10 months ago

0.1.54

10 months ago

0.1.55

10 months ago

0.1.11

10 months ago

0.1.56

10 months ago

0.1.12

10 months ago

0.1.57

10 months ago

0.1.13

10 months ago

0.1.58

10 months ago

0.1.14

10 months ago

0.1.59

10 months ago

0.1.15

10 months ago

0.1.50

10 months ago

0.1.51

10 months ago

0.1.49

10 months ago

0.1.41

10 months ago

0.1.42

10 months ago

0.1.43

10 months ago

0.1.44

10 months ago

0.1.45

10 months ago

0.1.46

10 months ago

0.1.47

10 months ago

0.1.48

10 months ago

0.1.40

10 months ago

0.1.38

10 months ago

0.1.8

10 months ago

0.1.39

10 months ago

0.1.7

10 months ago

0.1.9

10 months ago

0.1.6

10 months ago

0.1.5

10 months ago

0.1.31

10 months ago

0.1.33

10 months ago

0.1.35

10 months ago

0.1.37

10 months ago

0.1.27

10 months ago

0.1.29

10 months ago

0.1.63

10 months ago

0.1.64

10 months ago

0.1.20

10 months ago

0.1.65

10 months ago

0.1.21

10 months ago

0.1.66

10 months ago

0.1.67

10 months ago

0.1.23

10 months ago

0.1.68

10 months ago

0.1.25

10 months ago

0.1.60

10 months ago

0.1.61

10 months ago

0.1.62

10 months ago

0.1.17

10 months ago

0.1.19

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.0.1

10 months ago