0.0.38 • Published 4 months ago

@odigos/ui-kit v0.0.38

Weekly downloads
-
License
-
Repository
github
Last release
4 months ago

Odigos UI Kit

This library contains directories shared across multiple Odigos UIs, available import paths are:

  • components (re-usable and flexible)
  • constants
  • containers (logic based sections)
  • functions
  • hooks
  • icons
  • snippets (re-usable but not flexible)
  • store
  • theme
  • types

Installation

Using npm:

npm i @odigos/ui-kit

Using yarn:

yarn add @odigos/ui-kit

Usage

Wrap your app with the theme provider:

import Theme from '@odigos/ui-kit/theme'

const AppProviders = () => {
  return (
    <Theme.Provider>
      <App />
    </Theme.Provider>
  )
}

Import anything else you'd need:

import Theme from '@odigos/ui-kit/theme'
import { Text } from '@odigos/ui-kit/components'
import { useDarkMode } from '@odigos/ui-kit/store'
import { ToggleDarkMode } from '@odigos/ui-kit/containers'

const App = () => {
  const { darkMode } = useDarkMode()

  return (
    <div>
      <ToggleDarkMode />
      <Text>{darkMode ? 'it is dark in here' : 'it is light in here'}</Text>
    </div>
  )
}
0.0.38

4 months ago

0.0.37

4 months ago

0.0.36

5 months ago

0.0.35

5 months ago

0.0.34

5 months ago

0.0.33

5 months ago

0.0.32

5 months ago

0.0.31

5 months ago

0.0.30

5 months ago

0.0.29

5 months ago

0.0.28

5 months ago

0.0.27

5 months ago

0.0.26

5 months ago

0.0.25

5 months ago

0.0.24

6 months ago

0.0.23

6 months ago

0.0.22

6 months ago

0.0.21

7 months ago

0.0.20

7 months ago

0.0.19

7 months ago

0.0.18

7 months ago

0.0.17

7 months ago

0.0.16

7 months ago

0.0.15

7 months ago

0.0.14

7 months ago

0.0.13

7 months ago

0.0.12

7 months ago

0.0.11

7 months ago

0.0.10

7 months ago

0.0.9

7 months ago

0.0.8

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.2

7 months ago