0.3.15 • Published 8 months ago

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

Weekly downloads
-
License
-
Repository
-
Last release
8 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

8 months ago

0.2.26

8 months ago

0.2.25

8 months ago

0.2.24

8 months ago

0.2.23

8 months ago

0.2.22

8 months ago

0.2.21

8 months ago

0.2.20

8 months ago

0.2.19

8 months ago

0.2.18

8 months ago

0.2.17

8 months ago

0.2.16

8 months ago

0.2.15

8 months ago

0.2.14

8 months ago

0.2.13

8 months ago

0.2.12

8 months ago

0.2.11

8 months ago

0.2.10

8 months ago

0.3.6

8 months ago

0.3.5

8 months ago

0.3.8

8 months ago

0.3.7

8 months ago

0.3.2

8 months ago

0.3.1

8 months ago

0.3.4

8 months ago

0.3.3

8 months ago

0.3.9

8 months ago

0.3.15

8 months ago

0.3.14

8 months ago

0.3.13

8 months ago

0.3.12

8 months ago

0.3.11

8 months ago

0.3.10

8 months ago

0.2.7

8 months ago

0.2.6

8 months ago

0.2.9

8 months ago

0.2.5

8 months ago

0.2.1

8 months ago

0.1.148

8 months ago

0.1.129

8 months ago

0.1.128

8 months ago

0.1.139

8 months ago

0.1.136

8 months ago

0.1.135

8 months ago

0.1.138

8 months ago

0.1.137

8 months ago

0.1.132

8 months ago

0.1.131

8 months ago

0.1.134

8 months ago

0.1.133

8 months ago

0.1.130

8 months ago

0.1.146

8 months ago

0.1.143

8 months ago

0.1.142

8 months ago

0.1.145

8 months ago

0.1.144

8 months ago

0.1.141

8 months ago

0.1.140

8 months ago

0.1.118

9 months ago

0.1.119

9 months ago

0.1.125

8 months ago

0.1.124

8 months ago

0.1.127

8 months ago

0.1.126

8 months ago

0.1.121

8 months ago

0.1.120

8 months ago

0.1.123

8 months ago

0.1.122

8 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

9 months ago

0.1.53

9 months ago

0.1.54

9 months ago

0.1.55

9 months ago

0.1.11

9 months ago

0.1.56

9 months ago

0.1.12

9 months ago

0.1.57

9 months ago

0.1.13

9 months ago

0.1.58

9 months ago

0.1.14

9 months ago

0.1.59

9 months ago

0.1.15

9 months ago

0.1.50

9 months ago

0.1.51

9 months ago

0.1.49

9 months ago

0.1.41

9 months ago

0.1.42

9 months ago

0.1.43

9 months ago

0.1.44

9 months ago

0.1.45

9 months ago

0.1.46

9 months ago

0.1.47

9 months ago

0.1.48

9 months ago

0.1.40

9 months ago

0.1.38

9 months ago

0.1.8

9 months ago

0.1.39

9 months ago

0.1.7

9 months ago

0.1.9

9 months ago

0.1.6

9 months ago

0.1.5

9 months ago

0.1.31

9 months ago

0.1.33

9 months ago

0.1.35

9 months ago

0.1.37

9 months ago

0.1.27

9 months ago

0.1.29

9 months ago

0.1.63

9 months ago

0.1.64

9 months ago

0.1.20

9 months ago

0.1.65

9 months ago

0.1.21

9 months ago

0.1.66

9 months ago

0.1.67

9 months ago

0.1.23

9 months ago

0.1.68

9 months ago

0.1.25

9 months ago

0.1.60

9 months ago

0.1.61

9 months ago

0.1.62

9 months ago

0.1.17

9 months ago

0.1.19

9 months ago

0.1.4

9 months ago

0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.0.1

9 months ago