Iconify for Plotly Dash
Project description
Dash Iconify
Dash Iconify based on Iconify is a Dash component library which brings over 100,000 vector icons.
Table of contents
Installation
pip install dash-iconify
Quickstart
from dash_iconify import DashIconify
from dash import Dash
app = Dash(__name__)
app.layout = DashIconify(
icon="ion:logo-github",
width=30,
height=30,
rotate=1,
flip="horizontal",
)
if __name__ == "__main__":
app.run_server(debug=True)
Using with dmc
Dash Mantine Components enables using icons natively.
import dash_mantine_components as dmc
from dash_iconify import DashIconify
button = dmc.Button("Send Mail", leftIcon=[
DashIconify(icon="fluent:folder-mail-16-filled")
])
Keyword Arguments
Visit this site to browse all the available icons: https://icon-sets.iconify.design/
Keyword arguments:
- id (string; optional):
The ID used to identify this component in Dash callbacks.
- color (string; optional):
Color.
- flip (a value equal to: "horizontal", "vertical"; optional):
Flip the icon horizontally or vertically.
- height (number; optional):
Icon height.
- icon (string; optional):
Icon name is a string, which has 3 parts: @api-provider : icon-prefix : icon-name
provider points to API source. Starts with "@", can be empty (empty value is used for public Iconify API).
prefix is name of icon set.
name is name of icon.
- inline (boolean; optional):
Toggles inline or block mode.
- rotate (a value equal to: 0, 1, 2, 3; optional):
Rotates icon, 0: 0 deg, 1: 90 deg, 2: 180 deg, 3: 270 deg.
- style (dict; optional):
Inline style.
- width (number; optional):
Icon width.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dash_iconify-0.1.0.tar.gz
(17.7 kB
view details)
Built Distribution
File details
Details for the file dash_iconify-0.1.0.tar.gz
.
File metadata
- Download URL: dash_iconify-0.1.0.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c705a0b6c0b8a0a0e2b49fe80d5a3a8649c739632c02286c06c667fb0849c935 |
|
MD5 | d8d9d8be7a20469a3b35e411ce2ce504 |
|
BLAKE2b-256 | ae5ed23213abede4d5d7dda86d2148ac09cdc3462b6a92760236c63dca30158c |
File details
Details for the file dash_iconify-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: dash_iconify-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 267693fb16492f87945a8ee160a320156e61bba23a3ee6372def0d9cedcebb89 |
|
MD5 | 8fbb42f066317f4059290ee5db99b369 |
|
BLAKE2b-256 | fa8cc8cf8d7784165370ef1b1d03eb42708fe068ade517f6a22820a5df525d2a |