@rezafab/fab-button-react
v1.6.1
Published
React adapter for FabButton.
Readme
@rezafab/fab-button-react
React adapter for FabButton.
Install
pnpm add @rezafab/fab-button-react react react-domUsage
import { FabButton } from "@rezafab/fab-button-react"
const sections = [
{ key: "save", label: "Save", onClick: () => console.log("save") },
{ key: "share", label: "Share", onClick: () => console.log("share") }
]
export function Example() {
return <FabButton sections={sections} />
}Recommendation
For most projects, install the main package:
pnpm add @rezafab/fab-buttonThen import from:
import { FabButton } from "@rezafab/fab-button/react"Why this package exists
- Provides a framework-specific entrypoint for users who want adapter-level installation.
- Keeps React adapter release and internals modular in the monorepo.
- Enables internal composition with shared core and style packages.
Main docs: https://documentation-fab-button.vercel.app/
