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

Spinners

Upstream documentation: Link

The first argument will be shown to screen readers, if no arguments are passed the default is “Loading…”

from lona_bootstrap_5 import (
    GrowPrimarySpinner,
    GrowSecondarySpinner,
    GrowSuccessSpinner,
    GrowDangerSpinner,
    GrowWarningSpinner,
    GrowInfoSpinner,
    GrowLightSpinner,
    GrowDarkSpinner,
    BorderPrimarySpinner,
    BorderSecondarySpinner,
    BorderSuccessSpinner,
    BorderDangerSpinner,
    BorderWarningSpinner,
    BorderInfoSpinner,
    BorderLightSpinner,
    BorderDarkSpinner,
)

GrowPrimarySpinner("Loading the page...")

Alerts

Upstream documentation: Link

from lona_bootstrap_5 import (
    PrimaryAlert,
    SecondaryAlert,
    SuccessAlert,
    DangerAlert,
    WarningAlert,
    InfoAlert,
    LightAlert,
    DarkAlert,
)

Badges

Upstream documentation: Link

from lona_bootstrap_5 import (
    PrimaryBadge,
    SecondaryBadge,
    SuccessBadge,
    DangerBadge,
    WarningBadge,
    InfoBadge,
    LightBadge,
    DarkBadge,
)

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.3.tar.gz (1.6 MB view hashes)

Uploaded Source

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