How to use the piral-core.getPiralComponent function in piral-core

To help you get started, we’ve selected a few piral-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github smapiot / piral / src / packages / piral-dashboard / src / components.tsx View on Github external
import * as React from 'react';
import { getPiralComponent } from 'piral-core';
import { DashboardContainerProps, DashboardTileProps } from './types';

export const PiralDashboardContainer: React.ComponentType = getPiralComponent(
  'DashboardContainer',
);
export const PiralDashboardTile: React.ComponentType = getPiralComponent('DashboardTile');
github smapiot / piral / src / packages / piral-modals / src / components.tsx View on Github external
import * as React from 'react';
import { getPiralComponent } from 'piral-core';
import { ModalsHostProps, ModalsDialogProps } from './types';

export const PiralModalsHost: React.ComponentType = getPiralComponent('ModalsHost');
export const PiralModalsDialog: React.ComponentType = getPiralComponent('ModalsDialog');
github smapiot / piral / src / packages / piral-modals / src / components.tsx View on Github external
import * as React from 'react';
import { getPiralComponent } from 'piral-core';
import { ModalsHostProps, ModalsDialogProps } from './types';

export const PiralModalsHost: React.ComponentType = getPiralComponent('ModalsHost');
export const PiralModalsDialog: React.ComponentType = getPiralComponent('ModalsDialog');
github smapiot / piral / src / packages / piral-menu / src / components.tsx View on Github external
import * as React from 'react';
import { getPiralComponent } from 'piral-core';
import { MenuContainerProps, MenuItemProps } from './types';

export const PiralMenuContainer: React.ComponentType = getPiralComponent('MenuContainer');
export const PiralMenuItem: React.ComponentType = getPiralComponent('MenuItem');
github smapiot / piral / src / packages / piral-menu / src / components.tsx View on Github external
import * as React from 'react';
import { getPiralComponent } from 'piral-core';
import { MenuContainerProps, MenuItemProps } from './types';

export const PiralMenuContainer: React.ComponentType = getPiralComponent('MenuContainer');
export const PiralMenuItem: React.ComponentType = getPiralComponent('MenuItem');
github smapiot / piral / src / packages / piral-notifications / src / components.tsx View on Github external
import * as React from 'react';
import { getPiralComponent } from 'piral-core';
import { NotificationsHostProps, NotificationsToastProps } from './types';

export const PiralNotificationsHost: React.ComponentType = getPiralComponent(
  'NotificationsHost',
);
export const PiralNotificationsToast: React.ComponentType = getPiralComponent(
  'NotificationsToast',
);
github smapiot / piral / src / packages / piral-dashboard / src / components.tsx View on Github external
import * as React from 'react';
import { getPiralComponent } from 'piral-core';
import { DashboardContainerProps, DashboardTileProps } from './types';

export const PiralDashboardContainer: React.ComponentType = getPiralComponent(
  'DashboardContainer',
);
export const PiralDashboardTile: React.ComponentType = getPiralComponent('DashboardTile');
github smapiot / piral / src / packages / piral-notifications / src / components.tsx View on Github external
import * as React from 'react';
import { getPiralComponent } from 'piral-core';
import { NotificationsHostProps, NotificationsToastProps } from './types';

export const PiralNotificationsHost: React.ComponentType = getPiralComponent(
  'NotificationsHost',
);
export const PiralNotificationsToast: React.ComponentType = getPiralComponent(
  'NotificationsToast',
);