Skip to content

Latest commit

 

History

History

react-chayns-sharingbar

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

SharingBar

The SharingBar is part of the chayns-components package. It can be installed via npm:

npm install -S chayns-components@latest

Usage of the SharingBar

At least one of the components has to be imported:

import { SharingBar } from 'chayns-components';

You can use the SharingBar like this:

<SharingBar/>

Props

The following properties can be set on the SharingBar-Component

Property Description Type Default Value
link The link shared by the SharingBar String Link to the current Tapp
className Additional CSS-Classes that should be set to the button String
stopPropagation Stops the click propagation to parent elements bool false

Examples

You can take a look at the examples folder in the react-chayns-sharingbar repository. There you can find an appropriate way of implementing the SharingBar to your chayns-Tapp.