React Slick Dash Components
Project description
Dash Slick
Dash Slick is a Dash component library.
SlickSlider
A component to wrap react-slick Slider
component (https://github.com/akiran/react-slick/blob/master/src/slider.js).
Code Example
import dash_slick
import dash
import dash_html_components as html
import dash_bootstrap_components as dbc
app = dash.Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])
placeholder_text = """
Est nostrud non nulla labore aute dolore incididunt
enim adipisicing irure est nisi excepteur cillum.
Magna duis enim voluptate deserunt ullamco in cillum
duis magna. Elit ipsum consequat culpa ullamco incididunt.
Esse mollit ex amet labore non laboris minim.
Dolore labore mollit labore aliquip ad. Proident quis occaecat
aute ad quis veniam aliqua eiusmod laboris Lorem do occaecat.
Nisi proident labore magna cillum nostrud adipisicing.
"""
app.layout = html.Div([
dash_slick.SlickSlider(
dots=True,
arrows=True,
infinite=True,
autoplay=True,
speed=2000,
slides_to_show=5,
slides_to_scroll=1,
center_mode=True,
swipe_to_slide=True,
slide_navigator=True,
id="slick-slide",
children=[
html.Div(dbc.Card([
dbc.CardHeader(f"Slide {i}"),
dbc.CardBody(placeholder_text),
dbc.CardFooter(dbc.Button('Details'), style={'text-align': 'right'}),
]), style={'padding': '1em'}) for i in range(20)
],
labels=[f"Slide {i}" for i in range(20)]
),
], style={'margin-top': '10%'})
if __name__ == '__main__':
app.run_server(debug=True)
Result
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dash_slick-0.0.4.tar.gz
(232.4 kB
view details)
File details
Details for the file dash_slick-0.0.4.tar.gz
.
File metadata
- Download URL: dash_slick-0.0.4.tar.gz
- Upload date:
- Size: 232.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7e25b3a72fdbc9458cbf1247f701cd0b5a0824486c689573e2625f8a92150d9 |
|
MD5 | fb0584d812b25db9efa3da5ef0d720ac |
|
BLAKE2b-256 | 0ba40af3db61c7fe7efde49c968222fa511bf4b69afae713f422683d70522024 |