Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@gravity-ui/navigation
Advanced tools
npm install @gravity-ui/navigation
Ensure that peer dependencies are installed in your project
npm install --dev @gravity-ui/uikit@^3.0.2 @bem-react/classname@1.6.0 react@^16.0.0
If your app content needs to be rendered faster than by passing it throw AsideHeader
props,
you may need to switch usage of AsideHeader
to advanced style with PageLayout
like this:
--- Main.tsx
+++ Main.tsx
-import {AsideHeader} from './AsideHeader'
+import {PageLayout, AsideFallback} from '@gravity-ui/navigation';
+const Aside = React.lazy(() =>
+ import('./Aside').then(({Aside}) => ({ default: Aside }))
+);
- <AsideHeader renderContent={renderContent} {...restProps} />
+ <PageLayout>
+ <Suspense fallback={<AsideFallback />}>
+ <Aside />
+ </Suspense>
+
+ <PageLayout.Content>
+ <ContentExample />
+ </PageLayout.Content>
+ </PageLayout>
--- Aside.tsx
+++ Aside.tsx
-import {AsideHeader} from '@gravity-ui/navigation';
+import {PageLayoutAside} from '@gravity-ui/navigation';
export const Aside: FC = () => {
return (
- <AsideHeader {...props}>
+ <PageLayoutAside {...props}/>
);
};
import {AsideHeader} from '@gravity-ui/navigation';
Used for themization Navigation's components
Name | Description | Default |
---|---|---|
--gn-aside-header-decoration-collapsed-background-color | Decoration color for collapsed navigation | --g-color-base-warning-light |
--gn-aside-header-decoration-expanded-background-color | Decoration color for expanded navigation | --g-color-base-warning-light |
--gn-aside-header-background-color | Navigation background color | --g-color-base-background |
--gn-aside-header-divider-horizontal-color | All horizontal divider line color | --g-color-line-generic |
--gn-aside-header-divider-vertical-color | Vertical divider line color between AsideHeader and content | --g-color-line-generic |
--gn-aside-top-panel-height | Read only.AsideHeader top alert height | 0px |
Item | ||
--gn-aside-header-general-item-icon-color | Icon color for Subheader and Footer items | --g-color-text-primary |
--gn-aside-header-item-icon-color | Icon color for CompositeBar items | --g-color-text-misc |
--gn-aside-header-item-text-color | --g-color-text-primary | |
--gn-aside-header-item-background-color-hover | --g-color-base-simple-hover | |
Current Item | ||
--gn-aside-header-item-current-background-color | --g-color-base-selection | |
--gn-aside-header-item-current-icon-color | ||
--gn-aside-header-item-current-text-color | --g-color-text-primary | |
--gn-aside-header-item-current-background-color-hover | ||
z-indexes | ||
--gn-aside-header-z-index | Aside header z-index | 100 |
--gn-aside-header-panel-z-index | Aside header panel (Drawer component) z-index | 98 |
--gn-aside-header-pane-top-z-index | Top pane z-index | 98 |
--gn-aside-header-content-z-index | Content (right part) z-index | 95 |
FAQs
Gravity UI Navigation components
The npm package @gravity-ui/navigation receives a total of 1,447 weekly downloads. As such, @gravity-ui/navigation popularity was classified as popular.
We found that @gravity-ui/navigation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.