Skip to main content

Reflex components

Project description

Reflexions

PyPI License Package status Daily downloads Weekly downloads Monthly downloads Distribution format Wheel availability Python version Implementation Releases Github Contributors Github Discussions Github Forks Github Issues Github Issues Github Watchers Github Stars Github Repository size Github last commit Github release date Github language count Github commits this week Github commits this month Github commits this year Package status Code style: black PyUp

Read the documentation!

A collection of ready-to-use components for Reflex applications.

Components

Icons

from reflexions import iconify

# Create an icon with customizable properties
iconify("mdi:bell", color="blue", size=24)
iconify("mdi:account", color="red", rotate=90, flip="horizontal")

Loading Animation

from reflexions import loading_icon

# Add a spinning circle loading animation
loading_icon(stroke="#3182CE", speed="0.75")

Template Cards

from reflexions import cards, TemplateItem

# Create template cards for selection interfaces
templates = [
    TemplateItem(
        icon="mdi:web",
        title="Website Template",
        description="Basic website with header and footer",
        color="blue",
    ),
    # Add more templates...
]

# Create a responsive grid of cards with an optional click handler
cards(templates, on_click=lambda item: handle_selection(item), cols=3)

Pydantic Forms

from reflexions import pydantic_form
from pydantic import BaseModel, Field

class UserProfile(BaseModel):
    name: str = Field(..., description="Your full name")
    age: int = Field(..., gt=0, description="Your age in years")
    bio: str | None = Field(None, description="Tell us about yourself")

# Generate a complete form with validation from your model
form = pydantic_form(
    UserProfile,
    on_submit=handle_submission,
    submit_label="Save Profile",
)

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

reflexions-0.1.0.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

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

reflexions-0.1.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file reflexions-0.1.0.tar.gz.

File metadata

  • Download URL: reflexions-0.1.0.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for reflexions-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b5dcc83f70d9f08b68492001a9765552570f971ba9d7b0f4b2dafd08402e697f
MD5 b9efd480d199663075527fc06b8e6f08
BLAKE2b-256 c90f49234bde9429db13c097fe039613fbf5fadaceec569464eb3115a5b0323f

See more details on using hashes here.

Provenance

The following attestation bundles were made for reflexions-0.1.0.tar.gz:

Publisher: build.yml on phil65/Reflexions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file reflexions-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: reflexions-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for reflexions-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31df010ab0e59685f019c6ec2184163a8ba2acc1f29d3ac7ff5e809faef2e02b
MD5 5a814b9355b10862dc3f1feaf86c230b
BLAKE2b-256 c1e3cffea60af7e52384ea7bf489148fae09436ca234b7f1e82ab76aea37a208

See more details on using hashes here.

Provenance

The following attestation bundles were made for reflexions-0.1.0-py3-none-any.whl:

Publisher: build.yml on phil65/Reflexions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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