Skip to main content

Bootstrap 5 widgets for Lona

Project description

This package contains Lona nodes and widgets for Bootstrap 5.

Supported components:

Grid System

Upstream documentation: Link

from lona_bootstrap_5 import ColMd6, Col, Row

Row(
    ColMd6('foo'),
    ColMd6('bar'),
)

Row(
    Col('foo'),
    Col('bar'),
    Col('baz'),
)

TextInputs and TextAreas

Upstream documentation: Link

TextInput and TextArea work exactly like Lona TextInputs and are just styled by Bootstrap.

from lona_bootstrap_5 import TextInput, TextAreas

Buttons

Upstream documentation: Link

Button works exactly like Lona Button and is just styled by Bootstrap.

from lona_bootstrap_5 import (
    PrimaryButton,
    SecondaryButton,
    SuccessButton,
    WarningButton,
    DangerButton,
    InfoButton,
    LightButton,
    DarkButton,
    LinkButton,
)

Progress

Upstream documentation: Link

from lona_bootstrap_5 import Progress

Progress(*label, background=None, value=None, percentage=None,
         striped=False, animated=False)

Properties

  • Modal.background: (str) [‘’|success|info|warning|danger]

  • Modal.value: (int) Current progress value between 0 and 100

  • Modal.striped: (bool) Enables Bootstraps striped style

  • Modal.animated: (bool) Enables Bootstrap animations

Methods

  • Modal.set_labal(*nodes): Sets label

  • Modal.set_percentage(percentage): Sets the value the given value and calls Modal.set_label()

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

lona-bootstrap-5-0.1.tar.gz (1.3 MB view details)

Uploaded Source

File details

Details for the file lona-bootstrap-5-0.1.tar.gz.

File metadata

  • Download URL: lona-bootstrap-5-0.1.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.9

File hashes

Hashes for lona-bootstrap-5-0.1.tar.gz
Algorithm Hash digest
SHA256 95974237f9c07efe3e45584989f4ab16354ced5209b76a82c9b8fb17bbc838e4
MD5 30d7e8a572fb54878ecd293a14b3167b
BLAKE2b-256 129b1cc7af5c4d5b2826599a7b286106e30b3a8227d7e5c224502d2f7866bb6c

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