0.0.38 • Published 12 months ago

@odigos/ui-kit v0.0.38

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

12 months ago

0.0.37

12 months ago

0.0.36

12 months ago

0.0.35

12 months ago

0.0.34

1 year ago

0.0.33

1 year ago

0.0.32

1 year ago

0.0.31

1 year ago

0.0.30

1 year ago

0.0.29

1 year ago

0.0.28

1 year ago

0.0.27

1 year ago

0.0.26

1 year ago

0.0.25

1 year ago

0.0.24

1 year ago

0.0.23

1 year ago

0.0.22

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.2

1 year ago