Docs
Share

Share

Interface for sharing content.

Installation

Usage

import { Share } from "@/components/ui/share";
<Share>{/* Example usage */}</Share>

Props

PropTypeDefaultDescription
classNamestring-The class name to apply to the component.
childrenReactNode<Icon />The content to display in the component.
valuestringwindow.location.hrefThe URL or content to share.
valuePrefixstring-Prefix text to add before the value when sharing.
displayValuestring-Title to use when sharing (for native share API).
descriptionstring"Copied and ready to share"Toast message shown after copying.
asChildbooleanfalseWhether to merge props onto the immediate child element.
onShare() => void-Callback function invoked when sharing is triggered.