0.0.38 • Published 8 months ago

@odigos/ui-kit v0.0.38

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

8 months ago

0.0.37

8 months ago

0.0.36

8 months ago

0.0.35

8 months ago

0.0.34

8 months ago

0.0.33

8 months ago

0.0.32

8 months ago

0.0.31

9 months ago

0.0.30

9 months ago

0.0.29

9 months ago

0.0.28

9 months ago

0.0.27

9 months ago

0.0.26

9 months ago

0.0.25

9 months ago

0.0.24

9 months ago

0.0.23

10 months ago

0.0.22

10 months ago

0.0.21

10 months ago

0.0.20

10 months ago

0.0.19

10 months ago

0.0.18

10 months ago

0.0.17

10 months ago

0.0.16

10 months ago

0.0.15

10 months ago

0.0.14

11 months ago

0.0.13

11 months ago

0.0.12

11 months ago

0.0.11

11 months ago

0.0.10

11 months ago

0.0.9

11 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.2

11 months ago