mirror of
https://github.com/django-components/django-components.git
synced 2025-11-22 23:35:22 +00:00
Some checks are pending
Docs - build & deploy / docs (push) Waiting to run
Run tests / build (ubuntu-latest, 3.10) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.11) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.12) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.13) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.8) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.9) (push) Waiting to run
Run tests / build (windows-latest, 3.10) (push) Waiting to run
Run tests / build (windows-latest, 3.11) (push) Waiting to run
Run tests / build (windows-latest, 3.12) (push) Waiting to run
Run tests / build (windows-latest, 3.13) (push) Waiting to run
Run tests / build (windows-latest, 3.8) (push) Waiting to run
Run tests / build (windows-latest, 3.9) (push) Waiting to run
Run tests / test_docs (3.13) (push) Waiting to run
Run tests / test_sampleproject (3.13) (push) Waiting to run
29 lines
1.7 KiB
Markdown
29 lines
1.7 KiB
Markdown
# Overview
|
|
|
|
`django-components` makes it easy to share components between projects
|
|
([See how to package components](../concepts/advanced/component_libraries.md)).
|
|
|
|
Here you will find public examples of components and component libraries.
|
|
|
|
If you have components that would be useful to others, open a [pull request](https://github.com/django-components/django-components/pulls) to add them to this collection.
|
|
|
|
## Scenarios
|
|
|
|
- [Form Submission](./form_submission) - Handle the entire form submission flow in a single file and without Django's Form class.
|
|
- [HTML fragments](./fragments) - Load HTML fragments using different client-side techniques: vanilla JavaScript, AlpineJS, and HTMX.
|
|
- [Error handling](./error_fallback) - A component that catches errors and displays fallback content, similar to React's ErrorBoundary.
|
|
- [Recursion](./recursion) - 100 nested components? Not a problem! Handle recursive rendering out of the box.
|
|
- [A/B Testing](./ab_testing) - Dynamically render different component versions. Use for A/B testing, phased rollouts, etc.
|
|
- [Analytics](./analytics) - Track component errors or success rates to send them to Sentry or other services.
|
|
|
|
## Components
|
|
|
|
- [FormGrid](./form_grid) - A form component that automatically generates labels and arranges fields in a grid.
|
|
- [Tabs (AlpineJS)](./tabs) - Dynamic tabs with [AlpineJS](https://alpinejs.dev/).
|
|
|
|
## Packages
|
|
|
|
Packages or projects that define components for django-components:
|
|
|
|
- [`djc-heroicons`](https://pypi.org/project/djc-heroicons/) - Icons from HeroIcons.com for django-components.
|
|
- [`django-htmx-components`](https://github.com/iwanalabs/django-htmx-components) - A set of components for use with [htmx](https://htmx.org/).
|