0.0.24 • Published 9 months ago

@mariusbongarts/previewbox v0.0.24

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

PreviewBox · GitHub license npm version CI

Overview

PreviewBox is a collection of components that fetch and display link preview data from a specified URL. It's a straightforward way to add a link thumbnail to any website. Built with Web Components using LitElement and TypeScript, it works seamlessly in any framework.

Find our official documentation at previewbox.link/docs.

Components

<previewbox-link>

The <previewbox-link> component is a simple link card, similar to those found on websites like Medium or Twitter.

Preview

PreviewBox Link

<previewbox-article>

Our <previewbox-article> component is perfect for showing a preview of an article. Simply pass the URL of the article and we will fetch the data for you.

Preview

Demo

Check out this Codepen for a live demo.

Installation

Using CDN

To use our components via CDN, load the following script on the client side. You can either load all components at once or modularly pick the ones you need:

<!-- Load all components -->
<script src="https://cdn.jsdelivr.net/npm/@mariusbongarts/previewbox/dist/index.min.js"></script>

<!-- Or load specific components -->
<script src="https://cdn.jsdelivr.net/npm/@mariusbongarts/previewbox/dist/link/index.min.js"></script>

Using Package Manager

If you are using a bundler, you can install the package via npm:

npm install @mariusbongarts/previewbox
yarn add @mariusbongarts/previewbox
pnpm add @mariusbongarts/previewbox
bun add @mariusbongarts/previewbox

Then, import the component in your JavaScript or TypeScript file:

// Load all components
import '@mariusbongarts/previewbox/dist';

// Or load specific components
import '@mariusbongarts/previewbox/dist/link/index';

Usage

To learn more about how to use our components, check out our official documentation.

License

This project is licensed under the MIT License - see the LICENSE file for details.

0.0.20

9 months ago

0.0.21

9 months ago

0.0.22

9 months ago

0.0.23

9 months ago

0.0.24

9 months ago

0.0.16

9 months ago

0.0.17

9 months ago

0.0.18

9 months ago

0.0.19

9 months ago

0.0.11

9 months ago

0.0.12

9 months ago

0.0.13

9 months ago

0.0.14

9 months ago

0.0.15

9 months ago

0.0.10

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago