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, CardItem

# Create template cards for selection interfaces
templates = [
    CardItem(
        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.1.tar.gz (18.2 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.1-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reflexions-0.1.1.tar.gz
  • Upload date:
  • Size: 18.2 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.1.tar.gz
Algorithm Hash digest
SHA256 ecba4c610e6df0fc483acbfb4d377921c5d47f63a141b3e3331551b41879f725
MD5 9277b31d68d1527a3679a4752d8bd0c9
BLAKE2b-256 1f79ae13bc3c3e47dd0d90594c72be9f1c81aaf3a3c9ef86caeccc832499f9b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for reflexions-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: reflexions-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 535bb89effd9e4f8936de25b38af7e849b4a5013dbc54ac29170295824581065
MD5 ad257e04fd97281ca40f4b57b0067750
BLAKE2b-256 f500a28fe0fb2e40632bae49ea0e710bc72d88cde2a289208094294cee53f5e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for reflexions-0.1.1-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