MenuLink
Sidebar Navigation Render Component

Properties
Property
Type
Description
children
Node
Element to render inside the component
Required: true
exact
Boolean
When determining the active state, use an exact match
Default: false
expanded
Boolean
Determines the default expanded state
Default: false
group
String
When rendering as a Child Link, the Top-Level ID to target
id
String
Unique ID of the component
Required: true
url
String
Wraps the children in an anchor tag
Usage
import Reactium from 'reactium-core/sdk';
Reactium.Plugin.register('ToolkitOverview').then(() => {
if (!Reactium.Toolkit) return;
Reactium.Hook.register(
'plugin-ready',
() => {
const MenuLink = Reactium.Component.get('RTKMENULINK');
Reactium.Toolkit.Sidebar.register('overview', {
exact: true,
url: '/toolkit',
component: MenuLink,
children: 'Overview',
'aria-label': 'Overview',
order: Reactium.Enums.priority.highest,
});
}
);
});
Last updated