Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tflx/insta-story


https://github.com/tflx/insta-story

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# InstaStory Component

The `insta-story` is a custom web component built using LitElement.
See example [here](https://tflx.github.io/insta-story/?path=/story/instastory--default)

## Usage

To use this component, you need to import it in your project and then use the custom HTML tag `insta-story`.
Each item in the story is a `insta-chapter` element. You can add as many chapters as you want.

```html










```

## Attributes

| Attribute | Description | Type | Default |
| --------- | ------------------------- | ------ | ------- |
| width | The width of the slider in css unit | string | 'auto' |
| height | The height of the slider in css unit. | string | 'auto' |