How to use the piral-core.defaultRender 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 / default.tsx View on Github external
   defaultRender(props.children, 'default_dashboard')} />
);
github smapiot / piral / src / packages / piral / src / components / SwitchErrorInfo.tsx View on Github external
function renderComponent(
  components: ComponentsState,
  name: TKey,
  props: ComponentsProps,
) {
  const Component = components[name];

  if (!Component) {
    return defaultRender(undefined);
  }

  return ;
}
github smapiot / piral / src / packages / piral-menu / src / default.tsx View on Github external
export const DefaultItem: React.FC = props => defaultRender(props.children);
github smapiot / piral / src / packages / piral-search / src / default.tsx View on Github external
export const DefaultResult: React.FC = props => defaultRender(props.children);
export const DefaultInput: React.FC = props => (
github smapiot / piral / src / packages / piral-notifications / src / default.tsx View on Github external
export const DefaultToast: React.FC = ({ children }) => defaultRender(children);
github smapiot / piral / src / packages / piral-menu / src / default.tsx View on Github external
    empty={() => defaultRender(props.children, 'default_menu')}
  />
github smapiot / piral / src / packages / piral-dashboard / src / default.tsx View on Github external
export const DefaultTile: React.FC = props => defaultRender(props.children);
github smapiot / piral / src / packages / piral-modals / src / default.tsx View on Github external
export const DefaultDialog: React.FC = props => defaultRender(props.children);