PBCProvider

Combined dialog and notification provider.

Place it once above components that show dialogs and notifications. Pass settings through dialog and notifications.

Live example

Example controls

Usage

import { Button, PBCProvider } from '@prosazhin/pbcomponents';

function App() {
  return (
    <PBCProvider notifications={{ top: 20 }}>
      <Button>Ready</Button>
    </PBCProvider>
  );
}

Component API

PropType / variantsPurposeDefault
childrenReactNodeApplication children.—
dialogDialogProviderPropsDialogProvider settings such as animationDuration.—
notificationsNotificationsProviderPropsNotificationsProvider settings: top, delay, animation and timer.—

Native HTML attributes are accepted where the component renders the corresponding element. className props only affect styling.