0.0.38 • Published 6 months ago

@odigos/ui-kit v0.0.38

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

6 months ago

0.0.37

6 months ago

0.0.36

6 months ago

0.0.35

6 months ago

0.0.34

6 months ago

0.0.33

6 months ago

0.0.32

6 months ago

0.0.31

6 months ago

0.0.30

6 months ago

0.0.29

6 months ago

0.0.28

6 months ago

0.0.27

6 months ago

0.0.26

7 months ago

0.0.25

7 months ago

0.0.24

7 months ago

0.0.23

8 months ago

0.0.22

8 months ago

0.0.21

8 months ago

0.0.20

8 months ago

0.0.19

8 months ago

0.0.18

8 months ago

0.0.17

8 months ago

0.0.16

8 months ago

0.0.15

8 months ago

0.0.14

8 months ago

0.0.13

8 months ago

0.0.12

8 months ago

0.0.11

8 months ago

0.0.10

8 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.2

9 months ago