Data & Display

Code Block, Tree View, Gauge, Carousel, Rating, Color Picker, Kbd, Collapsible, Copy Button

← Home

Code Block

views.pypython
class CounterView(LiveView):
    def mount(self, request, **kwargs):
        self.count = 0

    @event_handler()
    def increment(self, **kwargs):
        self.count += 1
html
{% dj_button label="Save" event="save" %}

Tree View

src/
components/
· views.py
· urls.py
tests/
· README.md

Gauge / Donut

72%
CPU
45%
Memory
88%
Uptime
23%
Errors
60%
Disk

Image Carousel

Rating / Stars

Interactive (click to rate):

3 / 5 stars

Read-only display:

Color Picker

Preview: #3B82F6

Kbd Shortcuts & Copy Button

Save Ctrl+S
Command Palette +K
Select All Ctrl+A
Undo Ctrl+Z
copy button
pip install djust-components
from djust.decorators import event_handler

Collapsible

djust is a hybrid Python/Rust framework bringing Phoenix LiveView-style reactive server-side rendering to Django. It uses WebSockets for real-time updates without writing JavaScript.
The Rust engine handles template rendering and VDOM diffing at 10–100x the speed of Django's template engine. It exposes a Python API via PyO3 and is transparent to developers.
Yes — djust-components uses CSS custom properties (design tokens) so it adapts to any theme. You can also skip the default styles entirely and use your own class names.