Button
Native Share Button
A share button with two paths: the system sheet where it exists, and a quiet link copy with a receipt where it does not.
What you can change
- the children and copiedLabel labels
- the link through the url prop, where an empty string means the current address
- the share sheet's heading through the title prop
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/button-054?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
The component is self-contained: one file, no dependencies, its own palette in the local --vibeui-button-054-* variables. Client component. The handler checks navigator.share and, where it exists, opens the system sheet; a refusal by the user (AbortError) is caught and is not treated as an error. Otherwise the link goes to navigator.clipboard and the button moves into the "copied" state for 2.2 seconds — the timer is cleared in a useEffect. An empty url means the current page address, so the component is safe under server rendering.
Tags
- button
- share
- clipboard
- progressive
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…