A component for chat widget [tawk.to]
npm install svelte-tawk-to-chat-widgetA component for chat widget [tawk.to]
Example: [example]
``bash`
npm install svelte-tawk-to-chat-widget // or yarn add svelte-tawk-to-chat-widget
`js`
import { SvelteTawkToChaTWidget } from 'svelte-tawk-to-chat-widget'
// sapper import
import SvelteTawkToChaTWidget from 'svelte-tawk-to-chat-widget/src/TawkToChatWidget.svelte'
`html`
prop name | type | default
---------------------|------------------------|-------------------------
propertyId | string |chatId | string | "default"
`https://tawk.to/chat/{propertyId}/{chatId} `
Note that you will need to have [Node.js] installed.
Install the dependencies...
`bash`
cd svelte-tawk-to-chat-widget
npm install // or yarn
...then start [Rollup]:
`bash`
npm run build // or yarn build
cd example
npm run dev // or yarn dev
Navigate to [localhost:5000]. You should see your app running. Edit a component file in src`, save it, and your browser will reload the page so you can see your changes automatically.
[tawk.to]: https://www.tawk.to/
[Node.js]: https://nodejs.org
[Rollup]: https://rollupjs.org
[localhost:5000]: http://localhost:5000
[example]: https://svelte-tawk-to-chat-widget.now.sh