@tiny-components/slider (0.1.0)

Published 1 year ago by HerrHase

Installation

@tiny-components:registry=https://git.node001.net/api/packages/tiny-components/npm/
npm install @tiny-components/slider@0.1.0
"@tiny-components/slider": "0.1.0"

About this package

Tiny Components - Slider

Created with Riot.js

Using Styles for UI from Plain-UI, Swipe is handle by HammerJS

Source: https://gitea.node001.net/tiny-components/raw
Mirror: https://github.com/node001-net/tiny-components-raw

Installation

Setup this registry in your project .npmrc file:

@tiny-components:registry=https://gitea.node001.net/api/packages/tiny-components/npm/

Install with npm or yarn

npm i --save @tiny-components/slider
yarn add @tiny-components/slider

Using

<tiny-slider></tiny-slider>

<script defer>
    window.addEventListener('DOMContentLoaded', (event) => {
        riot.mount('tiny-slider', {
            'slides': [{
                'title': 'keel topgallant belay spirits',
                'content': 'Knave Cat o\'nine tails pirate Sink me me coffer to go on account take a caulk sloop fire in the hole. List clap of thunder parrel dance the hempen jig bilge water Brethren of the Coast Sail'
            }, {
                'title': 'Jack Ketch take a caulk',
                'content': 'parley lass. Heave down belaying pin Pirate Round Shiver me timbers heave to mutiny pirate jury mast Jolly Roger ye. Tender bilge draft sloop take a caulk crow\'s nest prow grog blossom holystone trysail.'
            }]
        })
    })
</script>

Customize

Extends your Component with mixin.js.

<your-slider>
    <div class="your-slider">
        // your markup
    </div>

    <script>

        // mixin
        import sliderMixin from '@tiny-components/slider/src/mixin.js'

        export default () => {
            return {

                ...sliderMixin

            }
        }
    </script>

</your-slider>

Dependencies

Dependencies

ID Version
@tiny-components/plain-ui ^0.6.0
@tiny-components/raw ^0.1.0
hammerjs ^2.0.8
riot ^7.1.0

Development Dependencies

ID Version
@riotjs/webpack-loader ^6.0.0
laravel-mix ^6.0.43
laravel-mix-purgecss ^6.0.0
sass ^1.51.0
sass-loader ^12.6.0
svg-spritemap-webpack-plugin ^4.4.0
Details
npm
1 year ago
47
Björn Hase
MIT
latest
408 KiB
Assets (1)
Versions (1) View all
0.1.0 on 2023-02-06