A minimal share card component to share links on social media or copy a direct link.
Dependencies
react-icons
Installation
npm install react-icons
Props
Name | Type | Default | Description |
---|---|---|---|
onClose | () => void | undefined | Callback function triggered when the close button is clicked. |
onCopy | () => void | undefined | Callback function triggered when the copy link button is clicked. |
title | string | Share On Social Media | Title displayed at the top of the card. |
subtitle | string | Share link via | Subtitle displayed below the title. |