Skip to main content

Reflex custom component simpleicons

Project description

Reflex Simple Icons

A Reflex wrapper for Simple Icons, the best library of SVG icons from the most popular brands.

Installation

pip install reflex-simpleicons

Usage

Import like so:

from reflex_simpleicons import simpleicons

Search for the logo you want to use on Simple Icons and click on the name. This will copy its name and you can paste it into the component.

reflex-simpleicons-web.PNG

Use in your Reflex UI:

By default it will have the color of the main text, switching automatically between light and dark mode. The default size is 48px.

simpleicons("python")

python-icon.PNG

Styling

You can customize the color and size of the icon by passing the color and size properties.

simpleicons("python"),
simpleicons("python", color="#3776AB", size=24),
simpleicons("python", color="red", size=48),
simpleicons("python", color="#ECD53F", size=67),
simpleicons("python", color="#5F259F", size=97),

python-icon-size-colors.PNG

Example

If you want to use the default HEX color of the brand you can add the property:

brand_color=True
import reflex as rx
from reflex_simpleicons import simpleicons


def demo_brands() -> rx.Component:
    return rx.el.div(
        simpleicons("7zip", brand_color=True, size=90),
        simpleicons(tag="Dell", brand_color=True, size=90),
        simpleicons(tag="Microsoft", brand_color=True, size=90),
        simpleicons(tag="Amazon", brand_color=True, size=90),
        simpleicons(tag="Apple", brand_color=True, size=90),
        simpleicons(tag="Spotify", brand_color=True, size=90),
        simpleicons(tag="3m", brand_color=True, size=90),
        simpleicons(tag="bitwarden", brand_color=True, size=90),
        simpleicons(tag="Dotenv", brand_color=True, size=90),
        class_name="demo-brands"
    )

brands_color.PNG

Disclaimer

By using this wrapper to access and use logos, you agree to the following terms and conditions:

  1. Intellectual property: Logos and trademarks found in this wrapper are the property of their respective owners. You do not acquire any ownership rights to the logos by using this plugin.

  2. Responsible use: You agree to use the logos responsibly and in accordance with intellectual property laws. You may not modify, distribute, reproduce, or use the logos in any way that may infringe the rights of their owners.

  3. Owner's permission: You are responsible for obtaining permission from the trademark owner before using their logo in any commercial or advertising context. The plugin does not give you permission to use the logos in this way.

  4. Limitation of liability: The plugin creators are not responsible for the misuse of logos by users. You are solely responsible for any damage or harm you may cause to brand owners by misusing logos.

  5. Indemnity: You agree to indemnify and hold harmless the wrapper creators from any claims, damages, or losses that may arise from your misuse of logos.

By using this wrapper, you represent that you have read and agree to the terms and conditions of this disclaimer.

Recommendation: It is recommended that users research the logo usage policies of the brands they are interested in before using their logos.

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

reflex-simpleicons-0.0.4.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reflex_simpleicons-0.0.4-py3-none-any.whl (2.0 MB view details)

Uploaded Python 3

File details

Details for the file reflex-simpleicons-0.0.4.tar.gz.

File metadata

  • Download URL: reflex-simpleicons-0.0.4.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for reflex-simpleicons-0.0.4.tar.gz
Algorithm Hash digest
SHA256 cec7fb726751adb58d3d139b237e9bcf312cfddc5cfac7648bc01afd1b490bda
MD5 b410409048e4aa810483d41c1ea23a2c
BLAKE2b-256 1e15c2d698e2840457fd2bc64951ad4774c36be382f9dee77b9e64f17c232e41

See more details on using hashes here.

File details

Details for the file reflex_simpleicons-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for reflex_simpleicons-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 709d5f26c2b43faf5db909b96940cb66f5bdfcd818b346e89e3b7ed75f4ab743
MD5 083e132da255974c909c0beddc5b97f3
BLAKE2b-256 b25ca5d56e808c92eca706e58f7b09b87c0ab84e3163eb85f28833b9e2011c84

See more details on using hashes here.

Supported by

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