
Product
Unify Your Security Stack with Socket Basics
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
@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.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
Product
Socket is launching experimental protection for the Hugging Face ecosystem, scanning for malware and malicious payload injections inside model files to prevent silent AI supply chain attacks.
Research
/Security News
The Socket Threat Research Team uncovered a coordinated campaign that floods the Chrome Web Store with 131 rebranded clones of a WhatsApp Web automation extension to spam Brazilian users.