Interface ShareButtonProps

Hierarchy

  • ShareButtonProps

Properties

anchorButton?: ReactElement<ButtonProps<"button", {}>, ExtendButtonBase<ButtonTypeMap<{}, "button">>>

MUI Button instance to use as anchor button.

className?: string

MUI Button className applied to the anchor button.

Default

""

hashtags?: string[]

Array of hashtags shared by Twitter share button.

Default

[]

menuOrigin?: number | "left" | "right" | "center"

Horizontal origin of the popover containing the share buttons.

Default

"left"

onCopyLink?: (() => void)

Type declaration

    • (): void
    • Callback fired when copy link button is clicked.

      Returns void

onShareFacebook?: (() => void)

Type declaration

    • (): void
    • Callback fired when Facebook share button is clicked.

      Returns void

onShareTwitter?: (() => void)

Type declaration

    • (): void
    • Callback fired when Twitter share button is clicked.

      Returns void

quote: string

Share quote.

size?: "large" | "medium" | "small"

MUI Button size applied to the anchor button.

Default

"large"

url: string

URL to share with social share buttons and to copy with copy link button.

variant?: "text" | "outlined" | "contained"

MUI Button variant applied to the anchor button.

Default

"outlined"

Generated using TypeDoc