Bootstrap 5 components for use with Django Cotton.
Project description
Django Cotton BS5
Bootstrap 5 components for Django Cotton - A comprehensive library of reusable, modular components.
Note: This project is currently a work in progress. Users are encouraged to request new components or features via the issue tracker.
Installation
pip install cotton-bs5
Add cotton_bs5 to your INSTALLED_APPS in settings.py:
INSTALLED_APPS = [
...
"django_cotton",
"cotton_bs5",
...
]
Available Components
The following Bootstrap 5 components are currently available as Django Cotton components:
- Alert (
<c-alert>) — Bootstrap alerts with variants, dismissible, slot/text support - Accordion (
<c-accordion>,<c-accordion.item>,<c-accordion.header>) — Collapsible accordion panels - Breadcrumbs (
<c-breadcrumbs>,<c-breadcrumbs.item>) — Navigation breadcrumbs - Button (
<c-button>) — Button/link with variants, outline, icon, slot/text - Button Group (
<c-button_group>) — Grouped buttons, vertical/size/label support - Card (
<c-card>,<c-card.body>,<c-card.title>) — Card container, body, and title - List Group (
<c-list_group>,<c-list_group.item>) — List group and items, horizontal/numbered/active/disabled - Modal (
<c-modal>,<c-modal.title>,<c-modal.body>) — Modal dialog, title, and body - Navbar (
<c-navbar>) — Responsive navigation bar with brand, expand, toggler - Progress (
<c-progress>) — Progress bar with value, min/max, variant, striped, animated, label - Spinner (
<c-spinner>) — Loading spinner, border/grow, size, variant, label - Table (
<c-table>) — Responsive table, striped, bordered, hover, small, variant, caption - Tabs (
<c-tabs>,<c-tabs.item>,<c-tabs.pane>) — Tab navigation and tab panes
More components are planned. Please request additional Bootstrap 5 components or features via the issue tracker.
Contributing
This library follows django-cotton conventions and Bootstrap 5 standards. When adding new components:
- Use
<c-vars />for default values - Include proper accessibility attributes
- Support all relevant Bootstrap 5 options
- Maintain consistent naming conventions
- Test with various configurations
License
MIT License - see LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_cotton_bs5-0.2.1.tar.gz.
File metadata
- Download URL: django_cotton_bs5-0.2.1.tar.gz
- Upload date:
- Size: 84.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd7280c7e8e8ad3f80036ef57967af8e7c389432e97ce872a86212725621996a
|
|
| MD5 |
699f8208b87e793a15c5af09785f5388
|
|
| BLAKE2b-256 |
698e75105adb7b0419ac24bb315842270d042501817d0b8bdd8df77d22828bba
|
Provenance
The following attestation bundles were made for django_cotton_bs5-0.2.1.tar.gz:
Publisher:
on-release-main.yml on SamuelJennings/cotton-bs5
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_cotton_bs5-0.2.1.tar.gz -
Subject digest:
bd7280c7e8e8ad3f80036ef57967af8e7c389432e97ce872a86212725621996a - Sigstore transparency entry: 602204822
- Sigstore integration time:
-
Permalink:
SamuelJennings/cotton-bs5@7f79b36b9eb339e938ffa39e40d9cfdd9cfeb73b -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/SamuelJennings
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
on-release-main.yml@7f79b36b9eb339e938ffa39e40d9cfdd9cfeb73b -
Trigger Event:
push
-
Statement type:
File details
Details for the file django_cotton_bs5-0.2.1-py3-none-any.whl.
File metadata
- Download URL: django_cotton_bs5-0.2.1-py3-none-any.whl
- Upload date:
- Size: 128.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4090376e2f4d5a2fbe8189d7173befe566bf6e9b3e40ef1305371fd0ffe7707
|
|
| MD5 |
91e74fe38196da8de1e461e7c49444e5
|
|
| BLAKE2b-256 |
8d037500584a50572115237224f8b876605b6edbee5ac4320b8cd963a9e228fe
|
Provenance
The following attestation bundles were made for django_cotton_bs5-0.2.1-py3-none-any.whl:
Publisher:
on-release-main.yml on SamuelJennings/cotton-bs5
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_cotton_bs5-0.2.1-py3-none-any.whl -
Subject digest:
d4090376e2f4d5a2fbe8189d7173befe566bf6e9b3e40ef1305371fd0ffe7707 - Sigstore transparency entry: 602204824
- Sigstore integration time:
-
Permalink:
SamuelJennings/cotton-bs5@7f79b36b9eb339e938ffa39e40d9cfdd9cfeb73b -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/SamuelJennings
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
on-release-main.yml@7f79b36b9eb339e938ffa39e40d9cfdd9cfeb73b -
Trigger Event:
push
-
Statement type: