Skip to content

Instantly share code, notes, and snippets.

View tchardin's full-sized avatar

tdot tchardin

View GitHub Profile

Keybase proof

I hereby claim:

  • I am tchardin on github.
  • I am tdot (https://keybase.io/tdot) on keybase.
  • I have a public key ASDuhC5hOeG1jEKd2DZtXZY3edZvkfPX8xSGVn7hDcX6pgo

To claim this, I am signing this object:

0x11e99A9A2ebE4AFfdB7209A723432f21CcC63398
@tchardin
tchardin / Pause.js
Last active November 14, 2021 16:23
Play/Pause toggle SVG button in React
import React from 'react'
const Pause = ({onPlayerClick}) => {
return (
<svg className="button" viewBox="0 0 60 60" onClick={onPlayerClick}>
<polygon points="0,0 15,0 15,60 0,60" />
<polygon points="25,0 40,0 40,60 25,60" />
</svg>
)
}