
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
walrus-info-floating-button
Advanced tools
This package provides a floating information button designed specifically for Walrus and Walrus Sites. It allows seamless integration into any React app related to Walrus, helping to showcase the capabilities of Walrus and Walrus Sites to the community.
To install the package in your React project, run:
npm install walrus-info-floating-button
Inside your React app, import the FloatingButton component:
import { FloatingButton } from "walrus-info-floating-button";
import "walrus-info-floating-button/src/styles.css"; // Import required CSS
function App() {
return (
<FloatingButton
darkMode={yourVariableHandlingThemes} //This prop is optional, if not provided, the light view will be set as default
/>
);
}
export default App;
You can pass your own Walrus site details to the first card of the info popup using these props:
Prop | Type | Description |
---|---|---|
darkMode | boolean | The variable handling your site theme. |
Example:
<FloatingButton
darkMode={yourVariableHandlingThemes} //This prop is optional, if not provided, the light view will be set as default
/>
Ensure that you import the CSS file for proper styling:
import "walrus-info-floating-button/src/styles.css";
Now, you can effortlessly integrate the Floating Information Button into any Walrus-related React app! 🚀
For any questions or contributions, feel free to reach out.
📌 License: MIT
📌 Author: Dio Lougaris
📌 Org: Mysten Labs
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
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.