uibrik

Share Menu

Preview

Customize

Duration0.50s
Bounce0.00
Blur4px

Usage

import { ShareMenu } from "@/components/uibrik/share-menu/share-menu";

<ShareMenu />

Installation

npx shadcn@latest add https://uibrik.com/r/share-menu.json
Adds the files to components/uibrik/share-menu and installs @tabler/icons-react, motion and react-use-measure. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/share-menu.

Props

ShareMenu
label
Type string
"Share"
Text on the closed pill.
duration
Type number
0.5
How long the pill takes to resize.
bounce
Type number
0
Spring bounce of the resize.
blur
Type number
4
Blur as the label and options swap.
options
Type ShareOption[]
Copy link, Download, Print
Rows in the open menu: label, Icon, onSelect.