This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@odigos/ui-containers
TypeScript icon, indicating that this package has built-in type declarations

0.0.82 • Public • Published

Odigos UI Containers

This library is not re-usable, these "containers" are considered complex components that contain logic, they designed to re-use across multiple deployments of the same Odigos UI (e.g. cluster, cloud, etc.)

Installation

Using npm:

npm i @odigos/ui-containers

Using yarn:

yarn add @odigos/ui-containers

Usage

Wrap your app with the theme provider from @odigos/ui-theme:

import Theme from '@odigos/ui-theme'

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

Import a container, and call it with it's props:

import { useEffect } from 'react'
import { NOTIFICATION_TYPE } from '@odigos/ui-utils'
import { ToastList, useNotificationStore } from '@odigos/ui-containers'

const App = () => {
  const { addNotification } = useNotificationStore()

  useEffect(() => {
    addNotification({
      type: NOTIFICATION_TYPE.SUCCESS,
      title: 'Mounted',
      message: 'App mounted successfully',
    })
  }, [])

  return <ToastList />
}

Readme

Keywords

none

Package Sidebar

Install

npm i @odigos/ui-containers

Weekly Downloads

41

Version

0.0.82

License

none

Unpacked Size

14.3 MB

Total Files

180

Last publish

Collaborators

  • amir-odigos
  • benodigos
  • keyval-alon