Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@gluestack-ui/fab
Advanced tools
A universal headless fab component for React Native, Next.js & React
@gluestack-ui/fab
The Floating Action Button (FAB) is a dynamic button that stays visible and provides access to a primary action throughout the user's journey in the application. It is a powerful UI element that adds a touch of elegance and convenience to the user experience.
To install the component, run the following command in your terminal. This will add the component to your project's dependencies and allow you to use it in your project.
npm install @gluestack-ui/fab
Default styling of all these components can be found in the components/core/fab file. For reference, you can view the source code of the styled Fab components.
// import the styles
import { Root, Label } from '../components/core/fab/styled-components';
// import the createFab function
import { createFab } from '@gluestack-ui/fab';
// Understanding the API
const Fab = createFab({
Root,
Label,
});
// Using the fab component
export default () => (
<Fab>
<FabLabel />
</Fab>
);
More guides on how to get started are available here.
FAQs
A universal headless fab component for React Native, Next.js & React
The npm package @gluestack-ui/fab receives a total of 13,337 weekly downloads. As such, @gluestack-ui/fab popularity was classified as popular.
We found that @gluestack-ui/fab demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 16 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.