Example Component Library
Demo Components
Card
Layouts Hero
Info card Slotted card
Alert Badge Button Quote oneup Rich button User card
Demo Extra Button
Demo Nav
Cards Info card
Elements Quote oneup Badge
Icon Accessibility
Generic Divider Tooltip
Action button Design guidelines
Demo Single Chip Pill
Gallery / Demo Single / Pill Gallery / / Pill
Demo Single /
Documentation

Description

A pill-shaped label, typically used for tags or categories.

Demonstrates the single-file components.py discovery pattern: define all components for an app in one file instead of a components/ package.

Example usage::

{% pill "Python" %}
{% pill "Django" %}

Usage

Minimal example

{% pill "foo" %}

Bigger example

{% pill "foo" %}

Qualified tag usage

{% demo_single__pill "foo" %}

Parameters

Name Type Required Default Choices Description
text str Yes — — The pill text.
Sandbox