Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@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 |
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 |
FAQs
Gravity UI Navigation components
The npm package @gravity-ui/navigation receives a total of 2,354 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.