Skip to main content

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


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.2.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

dash_iconify-0.1.2-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file dash_iconify-0.1.2.tar.gz.

File metadata

  • Download URL: dash_iconify-0.1.2.tar.gz
  • Upload date:
  • Size: 17.3 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

Hashes for dash_iconify-0.1.2.tar.gz
Algorithm Hash digest
SHA256 564774be6b11b0ac3a8999b7137c3d17a1d351d69b673aa313c7228eacc9d143
MD5 ed1393902d260b800c55b477fca847ce
BLAKE2b-256 49d203483ed3278cd476c34064bec43675fb6da84a6908e995a699eed76ab32d

See more details on using hashes here.

File details

Details for the file dash_iconify-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: dash_iconify-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 18.9 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

Hashes for dash_iconify-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9ab0eda19bb4514e177bf1f8f36947bb9e5b44aba6ce947f22a1cf0f1a45fc14
MD5 f9ad4357d27422a465a6400e8d519101
BLAKE2b-256 d263f10cc18533cc9ab899ea81deca9759b3eebe47d01ad95c4e67b6acdada97

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page