Skip to content

ploomber/dash-tabler-icons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dash Tabler Icons

Beautiful icons for your Dash apps.


Ploomber Logo
Made by Ploomber with ❤️

Deploy your Dash application on Ploomber.io for free.


tabler-icons.mp4

Live demo: dash-tabler-icons.ploomberapp.io

Installation

pip install dash-tabler-icons

Usage

import dash_tabler_icons as dti
from dash import html

icon = dti.DashTablerIcons(
    icon=dti.IconName.IconStar,
    size=48,
    color="#4B5563",
    stroke=1,
)

# Sample usage in a button
button = html.Button(
    icon,
    id="button-with-icon",
)

Run demo locally

cd demo
pip install -r requirements.txt
python app.py

Open: http://localhost:8050

Documentation

Setup

npm install
pip install -r requirements.txt
pip install -r tests/requirements.txt

Development

npm run build
python demo.py

The icon enum is auto-generated:

python generate-constants.py

Release

# generate
npm run build
python setup.py sdist bdist_wheel
ls dist

# test artifact
pip install dash dist/dash_tabler_icons-0.0.1.tar.gz
python demo/app.py

# upload
pip install twine
twine upload dist/*

# clean up
rm -rf dist