Slot

A component which renders UI extensions.

Below is an example of how the Slot component is used to allow extending the app's sidebar primary navigation.

import React from 'react';
import { Sidebar, NavGroup } from '@minddrop/ui';
import { Slot } from '@minddrop/core';
export const AppSidebar = () => (
<Sidebar>
<Slot location="Sidebar:PrimaryNav:Above" />
<NavGroup label="Main menu">
<Slot location="Sidebar:PrimaryNav:Item" />
</NavGroup>
<Slot location="Sidebar:PrimaryNav:Below" />
</Sidebar>
);
PropTypeDefault
location*stringNo default value