Sliding-pill nav indicator helpers (#255).
Server-side CSS custom-property estimates for first paint; shell runtime
syncPill()refines to measured pixels on client navigation.
nav_pill
| Name | Type | Default | Description |
|---|---|---|---|
type
|
|
— | |
qualified_name
|
|
— | |
element_type
|
|
— | |
description
|
|
— | |
source_file
|
|
— | |
line_number
|
|
— | |
is_autodoc
|
|
— | |
autodoc_element
|
|
— | |
_autodoc_template
|
|
— | |
_autodoc_url_path
|
|
— | |
_autodoc_page_type
|
|
— | |
title
|
|
— | |
doc_content_hash
|
|
— |
Symbols on this page
estimate_nav_item_width_em
function
nav_pill_inline_style
function
segmented_pill_inline_style
function
def segmented_pill_inline_style(items: Iterable[_PillItem]) -> str
Sliding pill offsets for segmented_control item dicts.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
items
|
Iterable[_PillItem]
|
— |
View source · /home/runner/work/chirp-ui/chirp-ui/site/../src/chirp_ui/nav_pill.py:1