
Security News
Socket Integrates With Bun 1.3’s Security Scanner API
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
@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 now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.
Security News
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.