
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@synerise/ds-app-menu
Advanced tools
AppMenu UI Component
npm i @synerise/ds-app-menu
or
yarn add @synerise/ds-app-menu
import AppMenu from '@synerise/ds-app-menu'
import Icon, { DashboardColorM, DashboardGreyM, SettingsColorM, AnalyticsColorM } from '@synerise/ds-icon';
<AppMenu
activeItem="settings"
top={20}
footer={
<AppMenu.Item id="dashboards" name="Dashboards">
<AppMenu.Item.Icon active={<DashboardColorM />} inActive={<DashboardGreyM />} />
</AppMenu.Item>
}
>
<AppMenu.Item
name="Settings"
id="settings"
subMenu={(
<AppMenu.SubMenu>
<AppMenu.SubMenu.Title>Settings</AppMenu.SubMenu.Title>
<AppMenu.SubMenu.SubTitle>My Account</AppMenu.SubMenu.SubTitle>
<AppMenu.SubMenu.Item active>Account Details</AppMenu.SubMenu.Item>
<AppMenu.SubMenu.Item>Business profile</AppMenu.SubMenu.Item>
</AppMenu.SubMenu>
})
>
<AppMenu.Item.Icon active={<SettingsColorM />} inActive={<SettingsGreyM />} />
</AppMenu.Item>
<AppMenu.Item id="analyics" name="Analytics">
<AppMenu.Item.Icon active={<AnalyticsColorM />} inActive={<AnalyticsGreyM />} />
</AppMenu.Item>
</AppMenu>
Property | Description | Type | Default |
---|---|---|---|
activeItem | ID of active menu item | string | - |
footer | Footer of menu | React.ReactNode | - |
children | Menu items | React.ReactNodeArray | - |
top | Distance from top of window in px | number | - |
Property | Description | Type | Default |
---|---|---|---|
subMenu | Submenu component | React.ReactNode | - |
name | Name visible in toolti | string | - |
id | ID of submenu | string | - |
children | Menu item children ie. icon | React.ReactNode | - |
Property | Description | Type | Default |
---|---|---|---|
active | Active icon component | React.ReactNode | - |
inActive | Inactive icon component | React.ReactNode | - |
Property | Description | Type | Default |
---|---|---|---|
children | Submenu elements | React.ReactNodeArray | - |
Property | Description | Type | Default |
---|---|---|---|
children | Title of submenu | React.ReactNode | - |
Property | Description | Type | Default |
---|---|---|---|
children | Text of subtitle section | React.ReactNode | - |
Property | Description | Type | Default |
---|---|---|---|
active | Whether item is active | boolean | - |
children | Item children ie. link | React.ReactNode | - |
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.