
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@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 from '@synerise/ds-icon';
import { DashboardColorM, DashboardGreyM, SettingsColorM, SettingsColorM, AnalyticsColorM } from '@synerise/ds-icon/dist/icons';
<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
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.