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.
@fluentui/react-drawer
Advanced tools
React Drawer components for Fluent UI React
These are not production-ready components and should never be used in product. This space is useful for testing new components whose APIs might change before final release.
The Drawer gives users a quick entry point to configuration and information. It should be used when retaining context is beneficial to users. An overlay is optional depending on whether or not interacting with the background content is beneficial to the user’s context/scenario. An overlay makes the Drawer blocking and signifies that the users full attention is required when making configurations.
To import React Drawer components:
import {
Drawer,
OverlayDrawer,
InlineDrawer,
DrawerHeader,
DrawerHeaderTitle,
DrawerHeaderNavigation,
DrawerBody
} from "@fluentui/react-components';
Simple example of Drawer Usage:
import { DrawerBody, DrawerHeader, DrawerHeaderTitle, Drawer } from '@fluentui/react-components';
import { Button } from '@fluentui/react-components';
import { Dismiss24Regular } from '@fluentui/react-icons';
export const App = () => (
<Drawer type="inline" open>
<DrawerHeader>
<DrawerHeaderTitle
action={
<Button
appearance="subtle"
aria-label="Close drawer"
icon={<Dismiss24Regular />}
onClick={() => setIsOpen(false)}
/>
}
>
Title goes here
</DrawerHeaderTitle>
</DrawerHeader>
<DrawerBody>
<p>Content goes here</p>
</DrawerBody>
</Drawer>
);
See the Spec.md file for background information on the design/engineering decisions of the component.
For information about the components, please refer to the API documentation.
FAQs
Drawer components for Fluent UI React
The npm package @fluentui/react-drawer receives a total of 106,202 weekly downloads. As such, @fluentui/react-drawer popularity was classified as popular.
We found that @fluentui/react-drawer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 12 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.