@rezafab/fab-button-svelte
v1.6.1
Published
Svelte adapter for FabButton.
Readme
@rezafab/fab-button-svelte
Svelte adapter for FabButton.
Install
pnpm add @rezafab/fab-button-svelte svelteUsage
<script lang="ts">
import { FabButton } from "@rezafab/fab-button-svelte"
const sections = [
{ key: "save", label: "Save", onClick: () => console.log("save") },
{ key: "share", label: "Share", onClick: () => console.log("share") }
]
</script>
<FabButton {sections} />Recommendation
For most projects, install the main package:
pnpm add @rezafab/fab-buttonThen import from:
import { FabButton } from "@rezafab/fab-button/svelte"Why this package exists
- Provides a framework-specific entrypoint for users who want adapter-level installation.
- Keeps Svelte 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/
