Share Buttons
Twitter

TwitterShare

👨‍💻 Code

import { TwitterShareBtn } from "dv-social-share";
 
<TwitterShareBtn
  url="https://dv-social-share.vercel.app"
  title="dv-social-share is a social share buttons for your next React.js & Next.js apps."
/>;

Output:



đź“– TwitterShareBtn Props

PropsTypeDefaultDescriptionRequired
urlstringThe URL of the shared page to be shared.âś…
titlestringThe title of the shared page.❌
viastring❌
hashtagsarray❌
relatedarray❌
imgConfigobjectA imgConfig contains width (number; e.g. 32/64), height (number; e.g. 32/64) & bgColor (string; e.g. '#FF0000') for the Image❌
openInNewTabbooleanfalseOpen share window in a new tab if set to true.❌