Skip to main content

labb

labb is a UI component library for Django, built with django-cotton, Tailwind CSS, and daisyUI 5. Write components directly in Django templates; labb renders the markup on the server.

It includes 50+ components for forms, navigation, data display, feedback, layouts, and charts. Pages stay static by default. When a page needs browser state or server-driven updates, labb uses Datastar while keeping Django views and templates in charge.

Requirements: Python 3.10–3.13 and Django 4.2+.

Status: labb is in pre-stable development and ready for production use. The 0.5.0 release settled the main API changes, so breaking changes should now be uncommon before v1.0.

<c-lb.card class="w-80">
    <c-lb.card.body>
        <c-lb.card.title>New order</c-lb.card.title>
        <p>Ready for review.</p>
        <c-lb.button variant="primary">Open order</c-lb.button>
    </c-lb.card.body>
</c-lb.card>

Start a new project

pip install labbstart
labbstart new
cd your-project-name
labb dev

Run python manage.py runserver in another terminal, then open http://localhost:8000.

Add labb to an existing project

pip install labbui
labb init --defaults
labb setup

Add the apps to settings.py:

INSTALLED_APPS = [
    # ...
    "django_cotton",
    "labb",
]

Add the dependencies component inside your base template's <head>:

{% load lb_tags %}
<c-lb.m.dependencies />

Keep labb dev running while you work. Install icons with pip install labbui[icons] when you need them.

Explore components

Browse examples and API references at labb.io/docs/ui, or inspect components from the terminal:

labb components inspect button
labb components ex button
labb icons search "arrow"

The guide covers installation, theming, CSS builds, reactivity, and writing your own components.

Community

Follow GitHub Discussions for release notes and project updates. We use Discussions for questions and feedback..

License

MIT

Metadata

Release files for labbui 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for labbui 0.5.0
File Size Uploaded
labbui-0.5.0.tar.gz 601.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for labbui 0.5.0
File Interpreter ABI Platform
labbui-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.4 MB

Release files / labbui-0.5.0.tar.gz

Download URL labbui-0.5.0.tar.gz
Size 601.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b09d10eba7d21479b65a7463e6f5916e8586886cf322c7f993a5ec2d00543608
BLAKE2b-256 checksum
How to use checksums
47dd39a3d04f3173f18aa84b65af4abac9e8e3d626d4d34aa6fcab27e631dabc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / labbui-0.5.0-py3-none-any.whl

Download URL labbui-0.5.0-py3-none-any.whl
Size 803.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98d20e16d00712945063d682dc8745d474e6ebae9482945d0f8742adf7df09dd
BLAKE2b-256 checksum
How to use checksums
13f97bda7f1f238a5ccfdf7a734d4109a86e3fbc853345644e467eb8107b388d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page