Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codewithshin/svelte-utterances

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codewithshin/svelte-utterances

Svelte Utterances Component

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

svelte-utterances

Demo

Svelte-utterances

Installation

npm i -D @codewithshin/svelte-utterances

Props

NameDefault
reponameNone
issueTermpathname
labelcomments
themegithub-light

Themes

The default is github-light. Select one from:

  • github-light
  • github-dark
  • preferred-color-scheme
  • github-dark-orange
  • icy-dark
  • dark-blue
  • photon-dark
  • boxy-light
  • gruvbox-dark

Issue term

The default is pathname. Select one from:

  • url
  • title
  • og:title
  • [Enter issue number]
  • [Enter term]

How to use

<script>
import { Utterances } from '@codewithshin/svelte-utterances'
</script>

<Utterances 
  theme="github-dark"
  reponame="yourname/repo-name"
/>

Dynamic theme switching

This is an example of how to reactively change the theme.

<script>
import { Utterances } from '@codewithshin/svelte-utterances'

let theme = 'github-light';

const switchTheme = () => {
  theme = theme === 'github-light' ? 'github-dark' : 'github-light';
}
</script>

<button on:click={switchTheme}>

<Utterances 
  theme={theme}
  reponame="yourname/repo-name"
/>

Check more details Utterances

Credits

References

Keywords

FAQs

Package last updated on 10 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc