https://github.com/paulkinlan/hackernews-share-button
https://github.com/paulkinlan/hackernews-share-button
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/paulkinlan/hackernews-share-button
- Owner: PaulKinlan
- License: apache-2.0
- Created: 2017-04-06T20:09:01.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-06T20:23:15.000Z (about 8 years ago)
- Last Synced: 2025-04-01T16:59:18.430Z (about 2 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HackerNews Share Button
The HackerNews Share Button web component provides a simple and customizable
interface for sharing URLs directly to HackerNews.* Automatically uses the URL, title and description of the page when present
* Allows you to override the URL and text to share to HackerNews.
* Allows you to configure the display with your own text and icons.
* When combined with `` element, it will automatically bind to the
data from it's host component and be embedded in the share control.[](https://www.webcomponents.org/element/owner/my-element)
```html
```
## Customize the UI
```html
HackerNews Button
```## Add an image
```html
![]()
```## Customize the URL to share
```html
```
## Customize the text to share
```html
Attribute Text Test
```## The full 9 yards
```html
Attribute and URL Test
```