Skip to main content

Crate lumen_dioxus

Crate lumen_dioxus 

Source
Expand description

Lumen UI components for Dioxus.

The components render the same classes and attributes as @santi020k/lumen-react, so they share Lumen’s stylesheet. They work with every Dioxus renderer: web, desktop and mobile (webview), and Dioxus Native, which draws HTML and CSS with the Blitz engine instead of a webview. Interactions run in Rust, so they also work where there is no JavaScript.

[dependencies]
lumen-dioxus = "6.0"

Render LumenStyles once near the root, wrap the app in LumenTheme, and use the components from the prelude:

use dioxus::prelude::*;
use lumen_dioxus::prelude::*;

#[component]
fn App() -> Element {
    rsx! {
        LumenStyles {}
        LumenTheme { scheme: LumenScheme::Dark,
            Card {
                CardHeader {
                    CardTitle { "Workspace plan" }
                    CardDescription { "Shared libraries and audit logs." }
                }
                CardFooter {
                    Button { variant: ButtonVariant::Secondary, "Compare plans" }
                    Button { onclick: move |_| {}, "Upgrade" }
                }
            }
        }
    }
}

Icons live in icons; brand icons need the brand-icons feature. On Dioxus Native, check controls render as ARIA buttons, glass needs a renderer with backdrop-filter support, placeholders do not show yet, and web platform APIs such as the clipboard fall back to a documented state. The crate README lists every component and the renderer notes.

Re-exports§

pub use icons::Icon;
pub use icons::IconData;
pub use icons::IconProps;
pub use icons::IconSize;
pub use LumenStyles_completions::Component::LumenStyles;

Modules§

hooks
Hooks shared by the components: generated ids and controlled or uncontrolled state.
icons
Icons: the complete Lucide interface catalog, optional Font Awesome brand icons, and Icon.
overlay
Building blocks for floating panels, menus, and dialogs that work on every Dioxus renderer.
prelude
Everything needed to build a Lumen interface: components, their props and option enums, icons, and LumenStyles.
time
Portable timers for components that wait, such as toasts, timers, and rolling text.

Structs§

AccordionItemProps
Props for AccordionItem.
AccordionProps
Props for Accordion.
AffixProps
Props for Affix.
AgendaProps
Props for Agenda.
AlertProps
Props for Alert.
AmountFieldChange
What AmountField reports after an accepted edit, like lumen-core’s LumenAmountChangeDetail.
AmountFieldOptions
Locale and precision of an amount, like lumen-core’s LumenAmountOptions.
AmountFieldProps
Props for AmountField.
AnchorLink
One link of an Anchor table of contents.
AnchorProps
Props for Anchor.
AnimatedLogoProps
Props for AnimatedLogo.
AnimatedNumberProps
Props for AnimatedNumber.
AnimatedPortraitProps
Props for AnimatedPortrait.
AppHeaderProps
Props for AppHeader.
ApprovalCardProps
Props for ApprovalCard.
ApprovalCardResponseDetail
The request an ApprovalCard emits. The application must still authorize the operation.
AspectRatioProps
Props for AspectRatio.
AttachmentListProps
Props for AttachmentList.
AttachmentPreviewLabels
Status messages of an AttachmentPreview. Unset fields keep the English default.
AttachmentPreviewProps
Props for AttachmentPreview.
AttachmentProps
Props for Attachment.
AutocompleteProps
Props for Autocomplete.
AvatarProps
Props for Avatar.
BackToTopProps
Props for BackToTop.
BackdropProps
Props for Backdrop.
BadgeProps
Props for Badge.
BarChartProps
Props for BarChart.
BoxPlotDatum
One distribution in a BoxPlot: either all five statistics or none of them.
BoxPlotProps
Props for BoxPlot.
BoxPlotStatisticLabels
Names of the five statistics and the outliers, shown in labels and the table.
BreadcrumbItem
One entry of a Breadcrumb trail.
BreadcrumbProps
Props for Breadcrumb.
BubbleProps
Props for Bubble.
BulletChartProps
Props for BulletChart.
BulletChartRange
A qualitative band of a BulletChart, such as “Poor” or “Good”, ending at end.
ButtonGroupProps
Props for ButtonGroup.
ButtonLinkProps
Props for ButtonLink.
ButtonProps
Props for Button.
CalendarHeatmapDatum
One day’s measurement for a CalendarHeatmap.
CalendarHeatmapProps
Props for CalendarHeatmap.
CalendarLabels
Text the date controls show. Every field is optional; unset fields use the built-in English copy (or the navigation labels of the locale language pack).
CalendarProps
Props for Calendar.
CalloutProps
Props for Callout.
CardPartProps
Props shared by the card parts.
CardProps
Props for Card.
CarouselButtonProps
Props for CarouselPrevious and CarouselNext.
CarouselItemProps
Props for CarouselItem.
CarouselProps
Props for Carousel.
CarouselViewportProps
Props for CarouselViewport.
CascaderOption
One option, with optional sub-options shown in the next column.
CascaderProps
Props for Cascader.
ChangeSummaryItem
One compared field of a ChangeSummary.
ChangeSummaryProps
Props for ChangeSummary.
CharacterCountProps
Props for CharacterCount.
CharacterCountSnapshot
The count, the characters left, and the visible text for a value and limit.
CharacterCountTemplate
A message with a {count} placeholder, with an optional singular form.
ChartBounds
Optional domain bounds; a missing bound is calculated from the data.
ChartComparisonDatum
One row of a LollipopChart or DumbbellChart.
ChartDatum
One data point of a ChartSeries.
ChartDomain
A numeric domain from min to max.
ChartLabels
The visible and assistive text of every chart. Override fields with struct update syntax: ChartLabels { empty: "Nothing yet".into(), ..ChartLabels::default() }.
ChartMotionProps
Props for ChartMotion.
ChartProps
Props for Chart.
ChartSeries
A named sequence of ChartDatum values.
ChartSummary
Facts about a chart’s data, passed to ChartLabels::format_summary.
CheckboxCardProps
Props for CheckboxCard and RadioCard.
CheckboxGroupItemProps
Props for CheckboxGroupItem.
CheckboxGroupProps
Props for CheckboxGroup.
CheckboxProps
Props for Checkbox and Switch.
CodeProps
Props for Code().
CodeTabsItem
One tab of a CodeTabs.
CodeTabsProps
Props for CodeTabs.
CollapsibleContentProps
Props for CollapsibleContent and AccordionContent.
CollapsibleProps
Props for Collapsible.
CollapsibleTriggerProps
Props for CollapsibleTrigger and AccordionTrigger.
ColorPickerProps
Props for ColorPicker.
ComboChartProps
Props for ComboChart.
ComboChartSeries
A series of a ComboChart and how it is drawn.
ComboboxProps
Props for Combobox.
CommandEmptyProps
Props for CommandEmpty.
CommandInputProps
Props for CommandInput.
CommandItemProps
Props for CommandItem.
CommandListProps
Props for CommandList.
CommandProps
Props for Command.
ContainerProps
Props for Container.
ContextMenuController
Open state, position, and trigger of a ContextMenu, like useContextMenu in lumen-react.
ContextMenuProps
Props for ContextMenu.
ContextMenuTriggerProps
Props for ContextMenuTrigger.
ContextNavigationProps
Props for ContextNavigation.
CopyButtonProps
Props for CopyButton.
CountryFlagProps
Props for CountryFlag.
CoverImageProps
Props for CoverImage.
DataTableCell
One cell value: the visible text and an optional sort value.
DataTableColumn
One column of a DataTable.
DataTableFilter
An exact-match column filter of a DataTableViewState.
DataTableLayoutControlsProps
Props for DataTableLayoutControls.
DataTableLayoutLabels
Copy for DataTableLayoutControls.
DataTableLayoutState
Column preferences: order, widths, and pins. No row values or selection are kept.
DataTablePagination
Pagination of a DataTableViewState.
DataTableProps
Props for DataTable.
DataTableRow
One record: an optional id and its cells keyed by column key.
DataTableSavedView
A named, saved DataTableViewState.
DataTableSavedViewsLabels
Copy for DataTableSavedViews.
DataTableSavedViewsProps
Props for DataTableSavedViews.
DataTableSort
One sort criterion.
DataTableSortControlsProps
Props for DataTableSortControls.
DataTableViewColumn
One column of a DataTableView.
DataTableViewLabels
Copy for a DataTableView. page uses {page}, {pages}, and {count} placeholders.
DataTableViewPage
The result of applying a DataTableViewState to rows.
DataTableViewProps
Props for DataTableView.
DataTableViewResult
What a DataTableView hands to its render callback.
DataTableViewState
Serializable view preferences: search, filters, visibility, pagination, sorting, density. Records and selection stay outside the state.
DatePickerProps
Props for DatePicker.
DateRangePickerProps
Props for DateRangePicker.
DateRangePickerValue
The start and end dates of a DateRangePicker; unset ends are None.
DescriptionDetailProps
Props for DescriptionDetail.
DescriptionItemProps
Props for DescriptionItem.
DescriptionTermProps
Props for DescriptionTerm.
DescriptionsItem
One plain-text row of Descriptions.
DescriptionsProps
Props for Descriptions.
DeviceFrameProps
Props for DeviceFrame.
DialogCloseProps
Props for DialogClose.
DialogController
Open state and trigger of a dialog, shared by a DialogTrigger and the dialog it opens.
DialogFormFailure
A failed DialogForm request, like a rejected submit promise in lumen-react. The dialog stays open, keeps every value, and shows its failure_message.
DialogFormProps
Props for DialogForm.
DialogFormState
What a DialogForm hands its render function, like the state lumen-react passes to a function child.
DialogFormValues
The values a DialogForm submitted, like the FormData lumen-react passes to submit.
DialogPartProps
Props shared by DialogHeader, DialogBody, and DialogFooter.
DialogProps
Props for Dialog.
DialogSurfaceProps
Props shared by AlertDialog and Drawer.
DialogTitleProps
Props for DialogTitle.
DialogTriggerProps
Props for DialogTrigger.
DirectionProps
Props for Direction.
DropdownMenuContentProps
Props for DropdownMenuContent.
DropdownMenuItemProps
Props for DropdownMenuItem and ContextMenuItem.
DropdownMenuProps
Props for DropdownMenu.
DropdownMenuSeparatorProps
Props for DropdownMenuSeparator.
DropdownMenuTriggerProps
Props for DropdownMenuTrigger.
DumbbellChartProps
Props for DumbbellChart.
EmptyProps
Props for Empty.
ErrorStateProps
Props for ErrorState.
ErrorSummaryProps
Props for ErrorSummary.
EyebrowProps
Props for Eyebrow.
FeatureGridItemProps
Props for FeatureGridItem.
FeatureGridProps
Props for FeatureGrid.
FieldErrorProps
Props for FieldError.
FieldProps
Props for Field.
FileUploadProps
Props for FileUpload.
FilterBarFilter
One active criterion of a FilterBar.
FilterBarProps
Props for FilterBar.
FloatingBadgeProps
Props for FloatingBadge.
FormErrors
Validation errors for a whole form: form-level messages and field messages, like lumen-core’s LumenFormErrors.
FormFieldError
One field’s validation message.
FormProps
Props for Form.
FormattedDateProps
Props for FormattedDate.
FormattedNumberProps
Props for FormattedNumber.
FunnelChartDatum
One stage of a FunnelChart.
FunnelChartProps
Props for FunnelChart.
GradientDividerProps
Props for GradientDivider.
GraphicProps
Props for Graphic.
GridProps
Props for Grid.
HeadingAnchorProps
Props for HeadingAnchor.
HeatmapDatum
One cell of a Heatmap.
HeatmapProps
Props for Heatmap.
HeroProps
Props for Hero.
HistogramBin
One application-supplied Histogram bin from start to end.
HistogramProps
Props for Histogram.
HoverCardProps
Props for HoverCard.
IllustrationProps
Props for Illustration.
ImageComparisonProps
Props for ImageComparison.
ImageProps
Props for Image.
InlineEditChangeDetail
A change the person saved in an InlineEdit, passed to on_value_change before the editor closes.
InlineEditLabels
Text of an InlineEdit. Unset or blank fields keep the English default, and {label} becomes the field label, like resolveLumenInlineEditLabels in lumen-core.
InlineEditProps
Props for InlineEdit.
InputGroupProps
Props for InputGroup.
InputOTPProps
Props for InputOTP.
InputProps
Props for Input.
InstallCommandProps
Props for InstallCommand.
ItemProps
Props for Item.
KanbanBoardProps
Props for KanbanBoard.
KanbanColumnProps
Props for KanbanColumn.
KanbanHandleProps
Props for KanbanHandle.
KanbanItemProps
Props for KanbanItem.
KanbanMoveDetail
A request to move a kanban item between columns, like LumenKanbanMoveDetail.
KbdProps
Props for Kbd.
LabelProps
Props for Label.
LanguageToggleLocale
One language offered by a LanguageToggle.
LanguageToggleProps
Props for LanguageToggle.
LineChartAnnotation
A labelled reference line on a LineChart.
LineChartProps
Props for LineChart.
LinkProps
Props for Link.
ListBoxGroup
A labelled run of options in a ListBox, like consecutive lumen-react options that share a section.
ListBoxProps
Props for ListBox.
LoadMoreProps
Props for LoadMore.
LoadMoreRequest
A request for the next page.
LollipopChartProps
Props for LollipopChart.
LumenThemeProps
Props for LumenTheme.
MarkerProps
Props for Marker.
MarqueeProps
Props for Marquee.
MediaFilmstripProps
Props for MediaFilmstrip.
MediaThumbnailProps
Props for MediaThumbnail.
MediaViewportLabels
Toolbar labels of a MediaViewport. Unset fields keep the English default.
MediaViewportProps
Props for MediaViewport.
MediaViewportValue
Zoom and pan of a MediaViewport. zoom is relative to fit; x and y are fractions of the available pan extent, from -1 to 1.
MentionsProps
Props for Mentions.
MenubarItemProps
Props for MenubarItem.
MenubarProps
Props for Menubar.
MessageActionsProps
Props for MessageActions.
MessageFeedbackDetail
The request a MessageActions emits when the person rates a message.
MessageProps
Props for Message.
MessageRetryDetail
The request a MessageActions emits when the person asks for a new response. The application owns regeneration.
MessageScrollerJumpProps
Props for MessageScrollerJump.
MessageScrollerProps
Props for MessageScroller.
MeterProps
Props for Meter.
MeterRange
The clamped range a Meter shows, like the native <meter> element.
MotionGroupProps
Props for MotionGroup.
NativeSelectProps
Props for NativeSelect.
NavigationMenuLinkProps
Props for NavigationMenuLink.
NavigationMenuProps
Props for NavigationMenu.
NoteProps
Props for Note.
NumberFieldDecimal
An exact, ungrouped decimal number: a coefficient and a scale (coefficient / 10^scale).
NumberFieldOptions
Bounds, step, and locale for number_field_in_bounds and number_field_step_draft, like lumen-core’s LumenDecimalOptions.
NumberFieldProps
Props for NumberField.
PageHeaderProps
Props for PageHeader.
PageNavLabels
Localizable PageNav copy. Blank values fall back to the English defaults.
PageNavLink
One side of a PageNav: the destination and the title of the page it leads to.
PageNavProps
Props for PageNav.
PaginationLabels
Localized names for a Pagination. Blank values fall back to the English defaults.
PaginationProps
Props for Pagination.
ParallaxProps
Props for Parallax.
ParticlesProps
Props for Particles.
PasswordFieldProps
Props for PasswordField.
PhoneInputCountry
A country the phone input can offer.
PhoneInputNumber
A parsed phone value.
PhoneInputProps
Props for PhoneInput.
PhoneNumberProps
Props for PhoneNumber.
PieChartProps
Props for PieChart.
PillProps
Props for Pill.
PopconfirmProps
Props for Popconfirm.
PopoverPanelProps
Props for PopoverPanel.
PopoverProps
Props for Popover.
PopoverTriggerProps
Props for PopoverTrigger.
ProgressProps
Props for Progress.
ProgressState
The clamped values a Progress renders, matching normalizeLumenProgress in lumen-core.
PromptComposerProps
Props for PromptComposer.
PromptComposerSubmitDetail
The request a PromptComposer emits when the user sends a prompt.
PromptSuggestion
A starter prompt offered by PromptSuggestions.
PromptSuggestionDetail
The request a PromptSuggestions emits when the person chooses a suggestion.
PromptSuggestionsProps
Props for PromptSuggestions.
ProseProps
Props for Prose.
QRCodeProps
Props for QRCode.
RadioGroupItemProps
Props for RadioGroupItem.
RadioGroupProps
Props for RadioGroup.
RangeChartDatum
One interval of a RangeChart.
RangeChartProps
Props for RangeChart.
RatingProps
Props for Rating.
ReasoningOpenOptions
The inputs of resolve_reasoning_open.
ReasoningProps
Props for Reasoning.
ReorderableListDetail
Details of a committed move.
ReorderableListItem
One item of a ReorderableList.
ReorderableListLabels
Copy for ReorderableList controls and announcements. {item} is the item label, {position} its one-based position, and {count} the number of items.
ReorderableListProps
Props for ReorderableList.
ResizablePanelProps
Props for ResizablePanel.
ResizableProps
Props for Resizable.
ResolvedPromptSuggestion
A suggestion ready to render: a visible label and the prompt it sends.
RevealGroupProps
Props for RevealGroup.
RichTextEditorChange
The editor content after an edit or command.
RichTextEditorCommandDetail
A command the editor ran.
RichTextEditorCommandProps
Props for RichTextEditorCommand.
RichTextEditorContentProps
Props for RichTextEditorContent.
RichTextEditorProps
Props for RichTextEditor.
RichTextEditorToolbarProps
Props for RichTextEditorToolbar.
RouteProgressProps
Props for RouteProgress.
ScatterChartProps
Props for ScatterChart.
ScatterChartReference
A reference line or region drawn behind the points of a ScatterChart.
ScheduleConflict
Two events that overlap on the same resource.
ScheduleEvent
One event on a Schedule.
ScheduleProps
Props for Schedule.
ScheduleResizeOptions
Options for resize_schedule_event.
ScheduleResource
A bookable resource, such as a room or a person.
ScheduleSlot
One cell of a schedule grid: a date, optionally a resource, and the events that start in it.
ScrollAreaProps
Props for ScrollArea.
ScrollProgressProps
Props for ScrollProgress.
ScrollRevealProps
Props for ScrollReveal.
SearchDialogController
Open state, readiness, and status of a SearchDialog, shared with its SearchDialogTriggers.
SearchDialogLabels
Text of a SearchDialog. Unset or blank fields keep the English default.
SearchDialogProps
Props for SearchDialog.
SearchDialogTriggerProps
Props for SearchDialogTrigger.
SearchFieldProps
Props for SearchField.
SearchResult
One search result. SearchDialog shows a result only when it has a title and an http:, https:, or relative link, and drops later results that repeat a link.
SecretValueLabels
Text of a SecretValue. Unset or blank fields keep the English default.
SecretValueProps
Props for SecretValue.
SectionHeaderProps
Props for SectionHeader.
SegmentedProps
Props for Segmented.
SelectOption
One choice in a Select, NativeSelect, ListBox, Segmented, or Mentions list, like lumen-react’s SelectOption.
SelectProps
Props for Select.
SelectionBarCountLabel
Count copy for a SelectionBar or LoadMore. {count} is the formatted count. Forms that are unset fall back to other; zero applies to 0 even where the locale has no zero category, as in English.
SelectionBarProps
Props for SelectionBar.
SeparatorProps
Props for Separator.
SettingsRowControlProps
Attributes a SettingsRow hands to its control render function, so the row names and describes the control. Spread them on the control, like lumen-react’s SettingsRowControlProps.
SettingsRowProps
Props for SettingsRow.
ShareLinksLabels
Localized action labels for ShareLinks. Blank values keep the English default.
ShareLinksLink
A resolved share link.
ShareLinksProps
Props for ShareLinks.
SheetProps
Props for Sheet.
SidebarItemProps
Props for SidebarItem.
SidebarProps
Props for Sidebar.
SidebarTriggerProps
Props for SidebarTrigger.
SiteFooterProps
Props for SiteFooter.
SiteHeaderProps
Props for SiteHeader.
SkeletonProps
Props for Skeleton.
SkipLinkProps
Props for SkipLink.
SliderProps
Props for Slider.
SourceCitationProps
Props for SourceCitation.
SparklineProps
Props for Sparkline.
SpeedDialAction
One action of a SpeedDial.
SpeedDialProps
Props for SpeedDial.
SpinnerProps
Props for Spinner.
SplitTextProps
Props for SplitText.
StackProps
Props for Stack.
StatGroupProps
Props for StatGroup.
StatIconProps
Props for StatIcon.
StatPartProps
Props shared by StatLabel, StatValue, and StatDescription.
StatProps
Props for Stat.
StatTrendProps
Props for StatTrend.
StatusDotProps
Props for StatusDot.
StepperProps
Props for Stepper.
StepperStep
One step of a Stepper.
StepsItemProps
Props for StepsItem.
StepsProps
Props for Steps.
StreamMessageProps
Props for StreamMessage.
SwipeCardAction
One of the two actions of a SwipeCard.
SwipeCardProps
Props for SwipeCard.
TableProps
Props for Table.
TabsListProps
Props for TabsList.
TabsPanelProps
Props for TabsPanel.
TabsProps
Props for Tabs.
TabsTriggerProps
Props for TabsTrigger.
TagGroupItemProps
Props for TagGroupItem.
TagGroupProps
Props for TagGroup.
TerminalLine
One line of a Terminal.
TerminalProps
Props for Terminal.
TestimonialGroupItem
One testimonial rendered from data by a TestimonialGroup.
TestimonialGroupProps
Props for TestimonialGroup.
TestimonialProps
Props for Testimonial.
TextRollProps
Props for TextRoll.
TextareaProps
Props for Textarea.
ThemeBuilderContrastScore
A WCAG contrast score (LumenContrastScore).
ThemeBuilderContrastSuggestion
A readable ink for a background (LumenThemeContrastSuggestion).
ThemeBuilderEditorProps
Props for ThemeBuilderEditor.
ThemeBuilderOptions
Inputs for create_theme_builder_tokens (LumenThemeBuilderOptions without presets).
ThemeBuilderProps
Props for ThemeBuilder.
ThemeBuilderResult
The output of create_theme_builder_tokens (LumenThemeBuilderResult without presets).
ThemeBuilderTokens
Theme tokens as ordered (name, value) pairs, like a JavaScript object of strings.
ThemeToggleProps
Props for ThemeToggle.
TimeFieldProps
Props for TimeField.
TimelineItemProps
Props for TimelineItem.
TimelineProps
Props for Timeline.
TimerConfig
A complete, normalized timer configuration.
TimerParts
A duration split into display units. Units that are not shown stay zero.
TimerProps
Props for Timer.
TimerSnapshot
Everything a timer renders for one moment.
ToastAction
An action button inside a toast.
ToastActionHandler
The click handler of a ToastAction.
ToastApi
Creates, updates, and dismisses the toasts of the nearest ToastProvider.
ToastDetail
What to show in a toast, passed to ToastApi::create and ToastApi::update.
ToastProps
Props for Toast.
ToastProviderProps
Props for ToastProvider.
ToastRecord
A toast held by a ToastProvider.
ToastViewportProps
Props for ToastViewport.
ToggleGroupProps
Props for ToggleGroup.
ToggleProps
Props for Toggle.
ToolActivityProps
Props for ToolActivity.
ToolbarProps
Props for Toolbar.
TooltipContentProps
Props for TooltipContent.
TooltipProps
Props for Tooltip.
TourProps
Props for Tour.
TourStep
One step of a Tour.
TransferItem
One movable item.
TransferProps
Props for Transfer.
TreeGridProps
Props for TreeGrid.
TreeGridRow
One row of a data-driven TreeGrid.
TreeNode
One item of a data-driven Tree.
TreeProps
Props for Tree.
TreeSelectNode
One tree node.
TreeSelectProps
Props for TreeSelect.
TypographyProps
Props for Typography.
ViewProgressProps
Props for ViewProgress.
VirtualListProps
Props for VirtualList.
VirtualListRange
The visible range reported by on_range_change.
VirtualListWindow
The rows a VirtualList renders for one scroll position.
VisualEffectProps
Props for VisualEffect.
VisuallyHiddenProps
Props for VisuallyHidden.
WaterfallChartDatum
One step of a WaterfallChart.
WaterfallChartProps
Props for WaterfallChart.
WatermarkProps
Props for Watermark.
WorldMapBounds
An axis-aligned rectangle in viewBox units.
WorldMapCountry
One country’s projected SVG path and label anchor.
WorldMapMarker
A consumer-supplied point of interest, placed with the same projection as the countries.
WorldMapPoint
A point in viewBox units.
WorldMapProps
Props for WorldMap.
WorldMapSelectDetail
Details sent when a country is selected.
WorldMapView
The visible region of the map: a zoom level and the center of the region in viewBox units.
WorldMapZoomLabels
Copy for the WorldMap zoom controls.

Enums§

AccordionType
How many Accordion items may be open at once.
AccordionVariant
Visual treatment of an Accordion.
AffixPosition
Edge an Affix sticks to.
AlertVariant
Tone of an Alert.
AmountFieldError
Why an amount operation failed (lumen-core throws a RangeError).
AmountFieldRangeState
Whether a complete amount is outside its bounds, like lumen-core’s LumenAmountRangeState.
AnimatedLogoAnimation
Entrance of an AnimatedLogo.
ApprovalCardResponse
The decision an ApprovalCard requests.
ApprovalCardStatus
State of an ApprovalCard request.
AttachmentPreviewState
What an AttachmentPreview shows.
AvatarSize
Size of an Avatar.
BackdropIntensity
Strength of a Backdrop.
BackdropTone
Color of a Backdrop.
BackdropVariant
Pattern drawn by a Backdrop.
BadgeVariant
Tone of a Badge.
BarChartLayout
How a BarChart arranges several series.
BarChartOrientation
Which way the bars of a BarChart grow.
ButtonLinkShape
Shape of a ButtonLink.
ButtonLinkVariant
Visual treatment of a ButtonLink.
ButtonSize
Size of a Button.
ButtonTone
Semantic color, independent of button prominence.
ButtonVariant
Visual treatment of a Button.
CalendarHeatmapWeekStart
The first day of each calendar column.
CardDensity
Spacing inside a Card.
CardVariant
Visual treatment of a Card.
CharacterCountState
Visual state of a CharacterCount, also its data-state value.
ChartDatumActivation
What a chart reports through on_datum_activate: data identities and values, never pixel coordinates.
ChartMotionDuration
The motion token used by a ChartMotion wrapper.
ChartPresentation
How much chrome a Chart draws around its content.
ChartSeriesDash
An explicit line pattern for a ChartSeries in LineChart or ComboChart. Leave ChartSeries::dash unset to use the stylesheet’s automatic series patterns.
ChartTone
The chart color tokens. Series tones cycle through series-1 to series-8.
ChartX
An x value: a category name or a number (a linear value or a millisecond timestamp).
CheckboxCardVariant
Surface style of a CheckboxCard or RadioCard.
CodeAppearance
Header style of a block Code().
CodeTheme
Syntax color theme of a Code().
CodeVariant
Inline code or a code block.
CollapsibleIcon
Disclosure indicator of a Collapsible or every item of an Accordion.
ComboChartMark
How a ComboChartSeries is drawn.
ContainerElement
The element rendered by Container, Grid, Stack, and ResizablePanel, like the as prop of @santi020k/lumen-react.
ContainerSize
Maximum width of a Container.
ControlSize
Height of a text control.
CopyButtonState
Feedback state of a CopyButton.
DataTableDensity
Row spacing of a DataTableView.
DataTablePin
The side a column is pinned to.
DataTableSortDirection
Sort direction.
DataTableSortMode
When rows are sorted.
DataTableSortType
How a column compares values when sorting.
DeviceFrameDevice
The device a DeviceFrame draws.
DeviceFrameOrientation
Orientation of a DeviceFrame.
DeviceFrameTone
Finish of a DeviceFrame.
DialogLayout
Layout of a Dialog.
DialogTitleLevel
Heading level of a DialogTitle.
DirectionValue
Text direction set by Direction.
EmptyVariant
Spacing of an Empty state.
ErrorStateAnnounce
How an ErrorState is announced to assistive technology.
ErrorStateKind
The kind of failure an ErrorState reports.
ErrorStateLayout
Layout of an ErrorState.
FeatureGridVariant
Framing of a FeatureGrid.
FormStatus
Where a Form is in its submission, also its data-status value.
FormattedDateStyle
Date length for FormattedDate: the Intl.DateTimeFormat dateStyle option.
FormattedDateTimeStyle
Time length for FormattedDate: the Intl.DateTimeFormat timeStyle option. Times are UTC.
FormattedNumberCurrencyDisplay
How FormattedNumber names a currency: the Intl.NumberFormat currencyDisplay option.
FormattedNumberCurrencyName
When FormattedNumber reads the full currency name to assistive technology.
FormattedNumberFormat
Number style for FormattedNumber: the Intl.NumberFormat style option.
FormattedNumberNotation
How FormattedNumber writes the magnitude: the Intl.NumberFormat notation option.
FormattedNumberSignDisplay
When FormattedNumber shows a sign: the Intl.NumberFormat signDisplay option.
FormattedNumberUnitDisplay
How FormattedNumber writes a unit: the Intl.NumberFormat unitDisplay option.
FormattedNumberValue
The value FormattedNumber formats: a number, or text read the way Lumen’s parseLumenNumber reads it.
Glass
Glass treatment shared by surfaces such as cards, alerts, fields, and tabs.
GraphicSize
Size of a Graphic.
GraphicTone
Color of a Graphic.
GraphicVariant
Frame drawn by a Graphic.
GridColumns
Column count of a Grid.
GridGap
Gap between Grid and Stack children, from Lumen’s spacing scale.
HeadingAnchorLevel
Heading level of a HeadingAnchor. The page title (h1) does not take a permalink.
HeatmapColorScale
How a Heatmap maps values to color.
HeroLayout
Arrangement of a Hero.
HistogramFrequency
What a Histogram bar height measures.
IllustrationSize
Size of an Illustration.
IllustrationTone
Color of an Illustration.
IllustrationVariant
Artwork drawn by Illustration, from Lumen’s graphics catalog.
ImageComparisonMode
How an ImageComparison shows its images. Switching modes keeps the reveal position.
ImageFit
How an Image fills its box.
ImageLoading
Loading strategy of an Image.
ImageRadius
Corner radius of an Image.
InputOTPInputMode
The inputmode of an InputOTP, which picks the on-screen keyboard.
InputOTPLengthError
Why input_otp_normalize_numeric rejected its configuration.
ItemElement
The element an Item renders.
KanbanMoveInput
How a kanban move was requested.
LineChartAnnotationAxis
Which axis a LineChartAnnotation marks.
LineChartCursor
The cursor of a controlled interactive LineChart.
LineChartMarkers
Which points of a LineChart get a marker dot.
LineChartScale
How a LineChart places x values.
LinkVariant
Color treatment of a Link.
LoadMoreState
Visible state of a LoadMore.
LumenPreset
An optional Lumen appearance preset. Every preset has light and dark variants.
LumenScheme
Light or dark color scheme.
MarkerVariant
Tone of a Marker.
MarqueeDirection
Travel direction of a Marquee. Inline directions follow the text direction; vertical directions loop within a fixed block size.
MarqueeGap
Space between Marquee items, from the shared spacing scale. Leave it unset for the responsive default.
MarqueeOutline
Outline treatment of Marquee text items.
MarqueeSpeed
Loop speed preset of a Marquee.
MediaThumbnailState
Loading state of a MediaThumbnail.
MediaViewportAction
A MediaViewport action.
MessageFeedback
A rating recorded by MessageActions.
MessageFrom
Who wrote a Message or Bubble.
MotionDuration
Named motion durations from Lumen’s tokens, used by ScrollReveal, RevealGroup, SplitText, and AnimatedNumber.
MotionGroupDuration
Animation length of a MotionGroup reflow.
NavigationVariant
Whether a panel uses Lumen’s styling or only its behavior hooks.
NoteBorderPosition
Where a Note draws its accent border.
NumberFieldDraft
A parsed NumberField draft, like lumen-core’s LumenDecimalDraft.
NumberFieldError
Why a NumberFieldOptions configuration was rejected (lumen-core throws a RangeError).
NumberFieldStepDirection
Which way number_field_step_draft moves.
Orientation
Layout direction shared by separators and tab lists.
PaginationEllipsis
Which hidden run an ellipsis stands for.
PaginationItem
One rendered pagination entry: a page target or a collapsed run of hidden pages.
ParticlesDensity
How many particles a Particles field holds.
PieChartVariant
The donut or pie form of a PieChart.
PillVariant
Visual treatment of a Pill.
ProseAppearance
Typography treatment of Prose.
ResizableDirection
Axis along which a Resizable lays out its panes.
RevealAnimation
Entrance style of a ScrollReveal or RevealGroup.
RevealDistance
Travel of a slide-up reveal.
RichTextEditorMode
How the content region edits text.
RouteProgressState
Phase of a RouteProgress bar.
ScatterChartScale
The x scale of a ScatterChart.
ScheduleError
Why a schedule operation failed, mirroring the errors lumen-core throws.
ScheduleResizeEdge
Which edge resize_schedule_event moves.
ScrollProgressPosition
Edge a ScrollProgress bar sticks to.
ScrollProgressTone
Color of a ScrollProgress bar. Override any tone with --ui-scroll-progress-color.
SearchDialogStatus
What a SearchDialog shows below its field.
SecretValueState
What a SecretValue shows.
SectionHeaderSize
Visual hierarchy of a section title, independent of its heading level.
SelectionBarPlacement
Where a SelectionBar sticks.
SelectionBarPlural
A plural category, as Intl.PluralRules names them.
ShareLinksResult
Outcome of the platform share sheet.
ShareLinksTarget
A platform ShareLinks can build a share link for. Brand logos are not part of the contract.
ShareLinksVariant
Layout of a ShareLinks list.
SheetSide
The inline edge a Sheet docks to and slides in from.
SidebarCollapse
How a Sidebar behaves on narrow viewports.
SidebarTriggerAction
What a SidebarTrigger does to its sheet.
SiteHeaderCollapse
How a SiteHeader collapses its navigation and actions while it is narrower than 40rem.
SkeletonAnimation
Loading animation of a Skeleton.
SkeletonShape
Shape of a Skeleton.
SkeletonSize
A Skeleton width or height: pixels, or a CSS length such as 0.75rem or 60%.
SpeedDialDirection
Direction a SpeedDial opens toward.
SplitTextBy
How a SplitText label is split.
SplitTextElement
The element a SplitText renders, lumen-react’s as prop.
SplitTextTrigger
When a SplitText animates.
StackAlign
Cross-axis alignment of Stack children.
StackJustify
Main-axis distribution of Stack children.
StatAs
Element a Stat or one of its text parts renders.
StatTone
Semantic tone that colors the StatValue and StatIcon of a Stat.
StatTrendTone
Tone of a StatTrend.
StatVariant
Surface treatment of a Stat.
StatusDotTone
Semantic color of a StatusDot.
StepperState
Progress of one step relative to the current step.
StepsLayout
Arrangement of Steps.
StreamMessageStatus
Lifecycle of a StreamMessage or a Reasoning.
SwipeCardAxis
Axis a drag is locked to once it travels past the slop. Ties resolve to vertical so a card never hijacks page scrolling.
SwipeCardDirection
Logical swipe outcome. Start follows the reading direction: left in LTR, right in RTL.
SwipeCardTone
Semantic tone of a swipe action’s button and cue.
TableLayout
How a Table or DataTable adapts to narrow widths.
TableRecordSlot
Where a column’s cells go when a Records table stacks into cards, like lumen-core’s LumenTableRecordSlot.
TableScrollCue
The scroll cue of a Table: a hint shown while the table is wider than its frame.
TerminalLineKind
What a TerminalLine holds.
TerminalLineTone
Color of a TerminalLine.
TestimonialGroupLayout
Layout of a TestimonialGroup.
TextRollMode
How a TextRoll label moves.
ThemeBuilderMode
How ThemeBuilder picks colors (LumenThemeBuilderMode).
ThemeBuilderScheme
The color scheme a theme targets (LumenThemeBuilderScheme).
TimerAnnounce
Live-region policy.
TimerFormat
How the visible value is written.
TimerInstant
An instant a Timer counts to or from.
TimerMode
Whether a timer counts down to an instant or up from one.
TimerState
What a timer shows at one moment.
TimerUnit
A unit a timer can display.
ToastAnnounce
How a toast announces its content to assistive technology.
ToastPlacement
Corner or edge of the viewport where toasts stack.
ToastVariant
Tone of a Toast.
ToolActivityStatus
Lifecycle of a ToolActivity.
ViewProgressRange
The part of a viewport pass that ViewProgress maps to 0..=1.
VisualEffectVariant
The effect a VisualEffect draws.
WaterfallChartKind
How a WaterfallChartDatum changes the running balance.
WorldMapInitialView
The view a WorldMap starts with.
WorldMapVariant
How country shapes are filled.

Constants§

DATA_TABLE_LAYOUT_DEFAULT_WIDTH
Default column width in pixels.
DATA_TABLE_LAYOUT_MAX_WIDTH
Widest column width in pixels.
DATA_TABLE_LAYOUT_MIN_WIDTH
Narrowest column width in pixels.
DATA_TABLE_SAVED_VIEW_NAME_LIMIT
Most characters of a new view name.
LUMEN_CSS
Lumen’s complete stylesheet, generated from @santi020k/lumen-core.
METER_DEFAULT_VALUE_LABEL
Default value text of a segmented Meter, counted from min.
METER_MAX_SEGMENTS
Most slots a segmented Meter draws; larger counts render a continuous bar.
PROMPT_COMPOSER_DEFAULT_LIMIT
Default most characters a PromptComposer accepts.
REORDERABLE_LIST_DRAG_THRESHOLD
Distance in CSS pixels a pointer must travel on a handle before a drag starts.
SCHEDULE_MAX_RECURRENCES
The most occurrences expand_recurring_schedule_event creates, a safety bound that the JavaScript version does not need because it fails on allocation instead.
SHARE_LINKS_DEFAULT_TARGETS
The default targets: LinkedIn, X, and email.
SWIPE_CARD_AXIS_SLOP
Travel in pixels before a drag is locked to one axis.
SWIPE_CARD_DISTANCE_RATIO
Share of the card width a drag must travel to commit.
SWIPE_CARD_FLICK_DISTANCE
Travel a flick needs before its velocity counts, in pixels.
SWIPE_CARD_MIN_DISTANCE
Smallest commit distance in pixels.
SWIPE_CARD_VELOCITY_THRESHOLD
Release speed in pixels per millisecond that commits a shorter flick.
TERMINAL_DEFAULT_PROMPT
The prompt shown before command lines. It is decorative and never copied.
THEME_BUILDER_COLOR_TOKEN_NAMES
Semantic color token names, in export order (lumenSemanticColorTokenNames).
THEME_BUILDER_TOKEN_NAMES
Every token name ThemeBuilder exports, in export order (lumenTokenNames): the semantic colors, then the glass tokens, then the structure tokens.
TIMER_DEFAULT_COMPLETE_LABEL
Default completion announcement for TimerAnnounce::Minute and TimerAnnounce::Complete.
TIMER_PLACEHOLDER
Text shown, and announced, when the timer has no valid instant to count from or to.
TIMER_UNITS
Display units a timer can show, largest first.
VIRTUAL_LIST_DEFAULT_ITEM_SIZE
Default row height in CSS pixels.
VIRTUAL_LIST_DEFAULT_OVERSCAN
Default number of extra rows rendered before and after the visible ones.
WORLD_MAP_LATITUDE_MAX
Northern edge of the projected latitude band.
WORLD_MAP_LATITUDE_MIN
Southern edge of the projected latitude band. The dataset leaves out Antarctica.
WORLD_MAP_PAN_THRESHOLD
Pointer travel, in CSS pixels, before a press on the map becomes a pan instead of a click.
WORLD_MAP_VIEW_BOX_HEIGHT
Height of the shared SVG viewBox, in map units. It spans latitude 84 to -60.
WORLD_MAP_VIEW_BOX_WIDTH
Width of the shared SVG viewBox, in map units. It spans longitude -180 to 180.
WORLD_MAP_ZOOM_MAX
Largest zoom level.
WORLD_MAP_ZOOM_MIN
Smallest zoom level, which shows the whole map.
WORLD_MAP_ZOOM_STEP
Zoom change for one press of the zoom in or zoom out button.

Functions§

Accordion
A stack of disclosures with single or multiple open items.
AccordionContent
The content of an AccordionItem. Same as CollapsibleContent.
AccordionItem
One details item of an Accordion, open while its value is in the accordion’s value.
AccordionTrigger
The trigger of an AccordionItem. Same as CollapsibleTrigger.
Affix
Keeps content stuck to an edge while its scroll container moves, with position: sticky.
Agenda
A day or event agenda: a header and a list of timed items.
Alert
Inline feedback with a semantic tone.
AlertDialog
A confirmation dialog with the alertdialog role. Outside clicks do not close it.
AmountField
A localized amount input, ported from lumen-react’s AmountField.
Anchor
An “On this page” table of contents that marks the section in view.
AnimatedLogo
A wrapper that animates a logo mark in with CSS.
AnimatedNumber
A number that counts from from to value when it scrolls into view. Assistive technology reads the final value once.
AnimatedPortrait
The animated portrait frame used on profile and hero sections.
AppHeader
The top bar of an application shell.
ApprovalCard
Collects an explicit decision for an application-owned pending request.
AspectRatio
Keeps its content at a fixed width-to-height ratio.
Attachment
A file chip: an <article>, or a link when href is set.
AttachmentList
A list of attachments.
AttachmentPreview
An image preview of an attachment with loading, error, and unavailable states.
Autocomplete
A search input with role="combobox" that suggests values from a <datalist>.
Avatar
A user or entity image with a text fallback. Without a fallback, text children such as initials render as the avatar’s only, centered content. Without src, a non-empty alt names the avatar as an image.
BackToTop
A button that returns to the top of the page.
Backdrop
A decorative pattern behind a section’s content.
Badge
A compact status or classification label.
BarChart
Compares values across categories with grouped or stacked bars, with a legend, a screen reader summary, a data table, and optional datum activation.
BoxPlot
Distributions side by side: whiskers, quartile box, median, and outliers for each row on a shared scale, with exact values in the table or a screen reader list.
Breadcrumb
The path from the site root to the current page.
Bubble
A chat bubble.
BulletChart
Progress toward a goal: the actual value as a bar, the target as a marker, and optional qualitative bands behind them.
Button
A button with Lumen’s variants, sizes, and loading state.
ButtonGroup
Joins related buttons into one segmented control.
ButtonLink
A link styled as a button, for navigation that looks like an action.
Calendar
A month grid for picking one date, following the WAI-ARIA date grid pattern.
CalendarHeatmap
A year of daily activity: one square per day, grouped into week columns, shaded by value. Days without a measurement show a cross and read “Not available”.
Callout
A highlighted note set apart from the surrounding content.
Card
A grouped surface. Compose it with CardHeader, CardTitle, CardDescription, CardContent, and CardFooter.
CardContent
Main content of a Card.
CardDescription
Supporting text under a CardTitle.
CardFooter
Footer of a Card, usually actions.
CardHeader
Header area of a Card: title, description, and header actions.
CardTitle
Title of a Card.
Carousel
A horizontally scrolling set of slides with previous and next controls.
CarouselItem
One slide, rendered as an <article> like the Lumen carousel examples.
CarouselNext
Scrolls the carousel forward by one page.
CarouselPrevious
Scrolls the carousel back by one page.
CarouselViewport
The scroll-snapping row of slides (data-ui-carousel-viewport).
Cascader
A cascading select. Picking an option with children opens its column; picking a final option sets the value, closes the panel, and returns focus to the trigger.
ChangeSummary
Compares current and proposed values with a visible changed state per field.
CharacterCount
Shows the characters left for an input or textarea and announces politely only at thresholds and when crossing the limit. It never truncates input.
Chart
A captioned figure that frames a visualization: heading, description, headline value, a screen reader summary, the content, and a caption.
ChartMotion
Wraps a chart so data updates read as motion, without delaying accessible data.
Checkbox
A checkbox that renders the same in browsers and in Dioxus Native.
CheckboxCard
A descriptive checkbox choice: a card with a label, an optional description, icon, and metadata.
CheckboxGroup
A fieldset without a frame that groups related checkboxes under one legend.
CheckboxGroupItem
One labelled checkbox in a CheckboxGroup.
Code
Inline code, or a code block with syntax highlighting, a header, and an optional copy button.
CodeTabs
Tabbed code examples, such as the same install command for several package managers.
Collapsible
A single details disclosure with controlled or uncontrolled open state.
CollapsibleContent
The content of the surrounding Collapsible or AccordionItem, hidden while closed.
CollapsibleTrigger
The summary that toggles the surrounding Collapsible or AccordionItem.
ColorPicker
A native color input for brand swatches and color tokens.
ComboChart
Combines bars with lines or areas that share one value scale, such as revenue bars with a margin line, with a legend, a data table, and optional datum activation.
Combobox
An editable combobox: a text input with a list of suggestions that filters as you type.
Command
A command palette: a search field that filters a list of actions.
CommandEmpty
A message shown while a query matches no CommandItem.
CommandInput
The search field of a Command. Renders a Lumen Input of type search.
CommandItem
One action of a Command. Hidden while the query does not match its text.
CommandList
An optional wrapper that groups the items of a Command.
Container
Centers page content and caps its width.
ContextMenu
A menu of actions for an element, opened at the pointer by a ContextMenuTrigger.
ContextMenuItem
A menuitem button for a ContextMenu. It renders like DropdownMenuItem.
ContextMenuTrigger
A Lumen button that opens its ContextMenu on right-click, the ContextMenu key, or Shift+F10.
ContextNavigation
Navigation that changes with a context switcher, such as docs for one platform.
CopyButton
Copies text and shows copied or failed feedback that resets after a moment.
CountryFlag
A country flag: an image when source is set, otherwise the region code.
CoverImage
A cropped cover image frame for cards and article headers.
DataTable
Styles dense tabular data: sortable headers (with optional multi-sort), row selection, expandable record details, loading and empty rows, and records or condensed layouts for narrow widths.
DataTableLayoutControls
Width, order, and pin controls for each column. Apply data_table_layout_column_keys and data_table_layout_style to the table’s headers and cells.
DataTableSavedViews
Apply, save, update, remove, and reset saved table views. Persistence is the application’s: the component calls back and stores nothing itself.
DataTableSortControls
A select and a direction toggle that drive the same sort as the table headers, for narrow layouts and toolbars.
DataTableView
A view controller around an application-rendered table, like lumen-react’s DataTableView: search, exact-match filters, column visibility, density, sorting, and pagination, in client or server mode.
DatePicker
A date field: a button that shows the value and opens a Calendar in a dialog, plus a hidden native <input type="date"> that submits the value with forms.
DateRangePicker
Groups a start and an end DatePicker. After mounting, the first picker is marked as the start and the last as the end, the start cannot be later than the end (and the reverse), and the root reports data-range-state.
DescriptionDetail
The detail of a DescriptionItem.
DescriptionItem
One rich row of Descriptions.
DescriptionTerm
The term of a DescriptionItem.
Descriptions
A key-value description list laid out in columns.
DeviceFrame
A device frame around a screenshot, an iframe, or live content.
Dialog
A modal dialog with Lumen’s dialog surface.
DialogBody
The main content of a dialog.
DialogClose
A Lumen button that closes the dialog it is in. Inside a pending DialogForm it is disabled, and a locked dialog stays open.
DialogFooter
The <footer> of a dialog, usually actions.
DialogForm
The form of a Dialog or AlertDialog. Place DialogHeader, DialogBody, and DialogFooter inside it.
DialogHeader
The <header> of a dialog, usually a DialogTitle and a description.
DialogTitle
The title of a dialog.
DialogTrigger
A Lumen button that opens a dialog and gets focus back when the dialog closes.
Direction
Sets dir on a wrapper and shares it with descendants through use_direction.
Drawer
A modal panel that slides up from the bottom, for filters and quick actions.
DropdownMenu
A button that opens a menu of actions.
DropdownMenuContent
The menu panel of a DropdownMenu. A click outside the open panel closes it.
DropdownMenuItem
A menuitem button. Choosing it closes the menu.
DropdownMenuSeparator
A line between groups of menu items.
DropdownMenuTrigger
The button that opens a DropdownMenu.
DumbbellChart
Before-and-after pairs: each row connects a reference dot to the current value.
Empty
An empty state for lists, searches, and panels with nothing to show yet.
ErrorState
A recoverable failure: an illustration, a titled explanation, an optional reference, and recovery actions.
ErrorSummary
Lists a form’s errors under a heading, each linked to its control, so keyboard users can jump straight to the field. Focus it after a failed submission; it has tabindex="-1". Inside a DialogForm, the form focuses it when no error control can take focus.
Eyebrow
A short kicker shown above a heading.
FeatureGrid
A responsive list of product features.
FeatureGridItem
One feature inside FeatureGrid. Icon and index markers are decorative.
Field
Groups a label, a control, and its validation message.
FieldError
The validation message of a Field.
FileUpload
A drop zone around a native file input. Clicking opens the file dialog; dragging files over the zone sets data-state="drag-over"; the selected file names are announced politely.
FilterBar
Groups application-owned dashboard filters, the active criteria, and a result announcement.
FloatingBadge
A badge pinned to the corner of a positioned parent, such as an avatar or icon button.
Form
A form with Lumen’s vertical rhythm and a data-status hook for submission states.
FormattedDate
A <time> element for display dates.
FormattedNumber
A display-only number. Renders <data value> with the machine-readable number; compact numbers, units, and ambiguous currency symbols add a screen-reader-only long reading, such as “1.2 thousand US dollars” for a visible “$1.2K”.
FunnelChart
Stage-by-stage drop-off, such as visits to sign-ups to purchases. Bars are sized relative to the largest stage; unknown stages show “Not available”.
GradientDivider
A decorative horizontal rule that fades in from both sides.
Graphic
A decorative frame around an icon or mark.
Grid
A responsive CSS grid on Lumen’s spacing scale.
HeadingAnchor
A section heading with a permalink and a copy-link button.
Heatmap
Shows a value for every row and column pair, with a color legend, a data table, and optional datum activation. Missing cells are marked with ×.
Hero
A landing hero labelled by its own heading.
Histogram
A distribution over application-supplied bins: bar widths follow the bin boundaries, and heights show counts or densities.
HoverCard
A preview card that opens while the pointer or focus is on its trigger.
Illustration
Line artwork for empty, success, error, and offline states, drawn from Lumen’s graphics catalog.
Image
A responsive image with Lumen’s fit, radius, and dark-mode treatments.
ImageComparison
Compares a before and after image. In reveal mode, the slider, a drag on the frame, or the arrow, Page Up, Page Down, Home, and End keys move the divider.
InlineEdit
Shows one value as text with an Edit button that swaps in a labelled field with Save and Cancel.
Input
A single-line text input.
InputGroup
Wraps an input with inline prefixes or suffixes, such as a currency sign, a unit, or an icon, inside one bordered control.
InputOTP
A one-time code field, ported from lumen-react’s InputOTP and useInputOTP.
InstallCommand
A one-line command with a copy button.
Item
A list row or tile that lines up media, text, and actions.
KanbanBoard
A horizontally scrolling board of KanbanColumns.
KanbanColumn
One column of a KanbanBoard. Highlights as a drop target while an item is dragged over it.
KanbanHandle
The move control of a KanbanItem (data-ui-kanban-handle), styled like a Lumen button.
KanbanItem
One card in a KanbanColumn (data-ui-kanban-item).
Kbd
A keyboard key or shortcut.
Label
A form label.
LanguageToggle
A button that switches to the next language in a list.
LineChart
Plots one or more series as lines or areas, with optional inspection (arrow keys, Home, End, Escape, and pointer hover or press), synchronized cursors, annotations, a legend, a screen reader summary, and a data table.
Link
An inline text link.
ListBox
An always-visible list of options with single or multiple selection, following the WAI-ARIA listbox pattern: the list is one focus stop and aria-activedescendant marks the active option.
LoadMore
A “Load more” control for a feed. It never fetches: activating it (or, with auto, the end of the feed scrolling into view) calls on_load_more, and the app updates loading, has_more, and error. Finished loads are announced politely.
LollipopChart
A ranking of single values: each row draws a stem from zero to a dot.
LumenStyles
Embeds LUMEN_CSS in a <style> element. Render it once, near the root of the app.
LumenTheme
Applies a Lumen color scheme and appearance preset to its children, and paints the canvas background, text color, and font.
Marker
A small numbered or labelled point, such as a step or map pin label.
Marquee
A looping band of short items such as logos, tags, or announcements.
MediaFilmstrip
An ordered strip of media thumbnails with a heading and a selection status.
MediaThumbnail
A selectable media thumbnail: a toggle button with a preview, label, order badge, and state.
MediaViewport
A media stage that zooms and pans, with a toolbar. The stage takes focus: arrow keys pan, + and - zoom, and Home fits; dragging pans while zoomed in.
Mentions
A textarea that suggests mentions: typing the trigger (@ by default) followed by letters, digits, or underscores lists the matching options.
Menubar
A horizontal bar of application menus with one tab stop and arrow-key movement.
MenubarItem
A menuitem button inside a Menubar.
Message
One message in a conversation.
MessageActions
Copy, retry, and rating actions under an assistant message.
MessageScroller
A scrolling conversation that can keep the newest message in view.
MessageScrollerJump
A button inside a MessageScroller (data-ui-message-jump) that is hidden at the end and scrolls back to the newest message.
Meter
A native <meter> for a measurement in a known range, with optional quota segments.
MotionGroup
A container whose keyed children (data-ui-motion-key) keep their identity across updates.
NativeSelect
A styled native <select>. Use it when the platform picker is a requirement; otherwise prefer Select, which also works on Dioxus Native.
NavigationMenu
A row of primary navigation links.
NavigationMenuLink
A link inside a NavigationMenu. Outside one it is a plain link.
Note
An editorial aside with an optional label and an accent border.
NumberField
A number input: <input type="number" class="ui-input ui-number-field">, like lumen-react.
PageHeader
The top of a page or app view: eyebrow, title, description, actions, and a leading tile.
PageNav
Previous and next links between pages of a series.
Pagination
Page navigation for paged content.
Parallax
Moves its direct children while the root crosses the viewport, with a CSS scroll-driven animation. Decorative only: children rest in place where scroll-driven animations are unsupported (Dioxus Native today) or motion is reduced.
Particles
A decorative field of drifting particles, hidden from assistive technology.
PasswordField
A labelled password input with an icon toggle that shows or hides the text.
PhoneInput
A phone field: a country select with calling codes and flags, and a number input that formats as you type, validates against libphonenumber metadata, and reports an E.164 value.
PhoneNumber
A read-only phone number with its country flag: the E.164 value when valid, otherwise the typed text, or an em dash when empty.
PieChart
Shows how parts make up a whole, with a legend, a share table, and optional datum activation.
Pill
A rounded tag or filter chip, optionally a link, with an optional count.
Popconfirm
A trigger button with a small confirmation panel, for actions that need a second click.
Popover
A button that toggles a floating panel of rich content.
PopoverPanel
The floating panel of a Popover or HoverCard. Escape inside it closes it.
PopoverTrigger
The Lumen button that toggles a Popover or HoverCard panel.
Progress
A determinate progress bar with progressbar semantics.
PromptComposer
An accessible prompt input with send and stop requests.
PromptSuggestions
Starter prompts that fill a PromptComposer.
Prose
Styles plain HTML content such as rendered Markdown.
QRCode
A QR code for a URL or text, with the value as its caption.
RadioCard
A descriptive radio choice: a card with a label, an optional description, icon, and metadata.
RadioGroup
A fieldset without a frame, for one choice among several.
RadioGroupItem
One labelled radio in a RadioGroup.
RangeChart
Shows a low-to-high range per category (forecast bands, min and max temperatures), with a data table and optional datum activation.
Rating
A row of star buttons. Each star is named Rate {star} out of {max}; activating one sets the rating, which lumen-react leaves to the application.
Reasoning
A collapsible view of a model’s reasoning.
ReorderableList
A vertical list whose items reorder by keyboard (Space or Enter on a handle to grab, arrow keys, Home, and End to move, Space or Enter to drop, Escape to cancel), with optional Move up and Move down buttons, or by dragging a handle where the renderer reports pointer events.
Resizable
Panes separated by handles that resize the panes on either side.
ResizablePanel
One pane of a Resizable. Every pane after the first renders the handle before it.
RevealGroup
Reveals its direct children one after another when the group scrolls into view.
RichTextEditor
A rich text editor frame. Compose it from RichTextEditorToolbar, RichTextEditorCommand, and RichTextEditorContent.
RichTextEditorCommand
A ghost icon button that runs an editing command. Toggle commands report aria-pressed, and data-state is on while the command (or the formatBlock value) is active.
RichTextEditorContent
The editable region: contenteditable with role="textbox" and aria-multiline, or a <textarea> in plain mode. Ctrl or Cmd shortcuts run the matching commands.
RichTextEditorToolbar
The editor’s toolbar.
RouteProgress
A thin top loading bar for page transitions.
ScatterChart
Plots numeric relationships as points or bubbles, with reference lines and regions, a legend, a data table, and optional datum activation.
Schedule
A resource or week schedule grid. Lay out its slots with create_schedule_slots and update events with move_schedule_event and resize_schedule_events.
ScrollArea
A bordered region that scrolls its overflowing content.
ScrollProgress
A reading progress bar fixed to the top or bottom of the viewport.
ScrollReveal
Fades or slides its content in when it scrolls into view.
SearchDialog
A modal site search: a field, a live status, a retry button, and result links from an async provider. Arrow keys move between the field and the results, Enter follows the first result, and following a result closes the dialog.
SearchDialogTrigger
A link to the search page that opens its SearchDialog once the dialog is mounted. While the shortcut listener runs it shows the platform’s shortcut hint and announces aria-keyshortcuts.
SearchField
A text input for search queries. Name it with a Label, aria_label, or aria_labelledby.
SecretValue
A masked secret with Show and Hide, an optional copy action, and an optional automatic hide.
SectionHeader
A heading row for a section inside a page, with an optional neutral count.
Segmented
A row of mutually exclusive options, like a radio group drawn as a segmented button.
Select
Lumen’s default option list: a combobox trigger that opens a listbox of options, with keyboard navigation and typeahead, plus a hidden native <select> for labels and validation.
SelectionBar
A floating bulk-action bar for a multi-select list.
Separator
A thematic break between groups of content.
SettingsRow
A label and description on the start side with a control on the end side. It stacks in narrow containers.
ShareLinks
Copy-link, native share, and platform share links for one URL.
Sheet
A modal panel that slides in from an inline edge: the end by default, for details and settings, or the start with SheetSide::Start, for start-edge panels such as filters.
Sidebar
The side panel of an application shell.
SidebarItem
A sidebar navigation link with an optional icon, a two-line label, and a trailing count.
SidebarTrigger
A ghost Button that opens or closes a Sidebar rendered with collapse: SidebarCollapse::Sheet.
SiteFooter
A website footer with brand, navigation groups, and a legal row.
SiteHeader
A public website header whose navigation collapses behind a menu toggle on narrow widths.
Skeleton
A placeholder block shown while content loads. Decorative unless named.
SkipLink
A link that stays hidden until it receives keyboard focus, for skipping repeated navigation.
Slider
A range slider: <input type="range" class="ui-slider">, like lumen-react.
SourceCitation
A named source link restricted to safe web URLs and local paths.
Sparkline
A small 120 × 40 trend line for tables, stats, and inline text.
SpeedDial
A floating button that fans out a short menu of related actions.
Spinner
An indeterminate loading indicator.
SplitText
Splits text into masked spans that rise in sequence; assistive technology reads one visually hidden copy.
Stack
A one-dimensional flex layout on Lumen’s spacing scale.
Stat
A single metric: a label, a prominent value, and optional icon, trend, and description.
StatDescription
Supporting context under a StatValue.
StatGroup
A responsive row of Stats that wraps on narrow widths.
StatIcon
The icon region of a composed Stat.
StatLabel
The label of a composed Stat.
StatTrend
A metric delta with a semantic tone.
StatValue
The prominent value of a composed Stat.
StatusDot
A small colored dot for presence and health. Decorative unless it has a label.
Stepper
Progress through an ordered, multi-step process.
Steps
Numbered documentation or quick-start steps. Numbering works without JavaScript.
StepsItem
One step inside Steps. The marker is hidden from screen readers unless announced.
StreamMessage
An assistant message that separates streaming content from concise status announcements.
SwipeCard
A card the user swipes toward the start or end to choose one of two actions.
Switch
An on/off switch, rendered as <button role="switch"> for the same reason as Checkbox.
Table
Styles a semantic table for records and comparisons.
Tabs
Tabs with roving focus and arrow-key navigation, following the WAI-ARIA tabs pattern.
TabsList
The tablist that holds the triggers.
TabsPanel
The tabpanel shown while its trigger is selected.
TabsTrigger
A tab button. Click, arrow keys, Home, and End move the selection.
TagGroup
A wrapping list of tags, such as selected filters or entered keywords.
TagGroupItem
One tag in a TagGroup: a role="listitem" with an optional remove button.
Terminal
A terminal window with command, output, and comment lines and an optional copy action.
Testimonial
A customer or peer quote with its author.
TestimonialGroup
A spotlight or grid of testimonials.
TextRoll
A short label inside a link or button that rolls upward when its nearest interactive ancestor is hovered or receives keyboard focus. Assistive technology reads the label once.
Textarea
A multi-line text input.
ThemeBuilder
Frames token previews and theme export controls.
ThemeBuilderEditor
A complete theme editor: brand and accent hues, light or dark scheme, generated or manual colors, radius and spacing scales, a live preview, and the exported CSS.
ThemeToggle
A sun and moon button that switches between a light and a dark theme.
TimeField
A native time input (HH:MM, or HH:MM:SS with a step below 60).
Timeline
An ordered list of events.
TimelineItem
One event in a Timeline: a tail, a dot, and content.
Timer
A live countdown or elapsed time.
Toast
A static notification surface. For timed toasts, use ToastProvider and use_toast.
ToastProvider
Provides use_toast to its children and renders one live region per stack placement.
ToastViewport
A fixed notification region that stacks static Toasts. ToastProvider renders its own.
Toggle
A two-state button with aria-pressed, such as bold or mute.
ToggleGroup
A set of related Toggles with one tab stop and arrow-key movement.
ToolActivity
A disclosure of application-owned tool progress and results.
Toolbar
A labelled group of controls with the toolbar role.
Tooltip
A short label shown while the pointer or focus is on a control.
TooltipContent
The tooltip text of a Tooltip.
Tour
A guided tour: a backdrop and a panel that steps through anchored tips.
Transfer
A dual list: check items on one side, then move them with the arrow buttons.
Tree
A hierarchical list of items, such as files or navigation.
TreeGrid
Hierarchical rows with grid columns, such as a project status table.
TreeSelect
A select backed by a tree. Opening expands every branch and focuses the selected node.
Typography
Applies Lumen’s type scale to plain HTML content inside it.
ViewProgress
Scrubs the registered --ui-view-progress number from 0 to 1 on its root while it crosses the viewport. It rests at 1 where scroll-driven animations are unsupported (Dioxus Native today) or motion is reduced.
VirtualList
A scrollable list that windows long collections.
VisualEffect
A decorative effect layer behind its content.
VisuallyHidden
Hides content visually while keeping it available to assistive technology.
WaterfallChart
Running totals: each step’s bar spans from the previous balance to the new one, with connectors between steps. Totals reset the balance.
Watermark
Tiles rotated text over its content, behind a non-interactive overlay.
WorldMap
An interactive world map.
adjacent_kanban_column
The column next to current in visual order, like getAdjacentKanbanColumn.
amount_field_range_state
The range state of a complete amount, like getLumenAmountRangeState. Empty and incomplete drafts have no range state.
amount_field_value
The submitted value of a draft, like getLumenAmountValue: the draft itself when it is a complete decimal (-?[0-9]+(\.[0-9]+)?, at most 1024 characters), otherwise None.
apply_media_viewport_action
Applies a toolbar or keyboard action like applyLumenMediaViewportAction.
breadcrumb_items
Resolves a trail to a single current page, like resolveLumenBreadcrumbItems: the first entry marked current, otherwise the last. The current entry and entries without href never link.
can_place_schedule_event
Whether event has a valid range and overlaps none of events.
can_submit_prompt_composer
Whether a prompt can be sent: not blank and within limit UTF-16 code units, like the browser’s maxlength.
command_matches
Whether an item’s text matches a query, like the Lumen web runtime’s command filter: the query is trimmed and both sides compare case-insensitively; an empty query matches everything.
compare_data_table_cells
Compares two cells with a column’s sort type. None means the values are not comparable (a number column with non-numeric text); sort_data_table_rows orders those cells after every number.
compare_data_table_text
Natural, case-insensitive comparison that approximates localeCompare with { numeric: true, sensitivity: "base" }: digit runs compare as numbers, letters compare by their lowercase form, and punctuation sorts before digits, which sort before letters.
create_schedule_slots
Groups events into one slot per date (and per resource, when resources is not empty).
create_theme_builder_tokens
Builds ThemeBuilder tokens from options (createThemeBuilderTokens without presets).
cycle_data_table_sorting
Header activation without multi-sort, like Lumen’s web runtime: the primary column cycles ascending, descending, then unsorted (the original order); any other column starts ascending and replaces the criteria.
data_table_column_visible
Whether a column is shown: always for columns that cannot hide, otherwise unless the state hides it.
data_table_layout_column_keys
Column keys in display order: start-pinned, unpinned, then end-pinned, each following the preferred order with new keys last.
data_table_layout_move
The state after moving a column one place earlier (-1) or later (1) among the columns pinned to the same side, or None when it cannot move.
data_table_layout_pin
The state after pinning (or unpinning, with None) a column.
data_table_layout_resize
The state after resizing a column, or None for unknown keys or widths outside 64 to 1200.
data_table_layout_style
Inline CSS for a column’s header and cells: a fixed width and, when pinned, a sticky offset that adds up the widths of the pinned columns before it.
data_table_record_slots
Each column’s record slot after the title rules of resolve_table_record_slots. A Title column after the first resolves as if it had no record, so a wide one is Wide, like lumen-core.
data_table_saved_state
The state a saved view stores: the preferences, starting on the first page.
data_table_view_page
Filters, sorts, and paginates rows on the client, like the TanStack model behind lumen-react’s DataTableView. With server true the rows are already one page: nothing is filtered, sorted, or sliced and row_count gives the matching total.
expand_recurring_schedule_event
Repeats an event count times, interval_days apart. The first copy keeps the id; later ones get {id}-2, {id}-3, and so on. Dates are written in UTC ISO format.
export_theme_builder_css
Exports tokens as a :root CSS rule with a color-scheme declaration (exportThemeBuilderCss).
export_theme_builder_selector_css
Exports tokens as one CSS rule for selector (exportThemeCss).
filter_bar_remove_label
The default accessible name of a filter’s remove button: Remove {label}: {value}.
find_world_map_country
Finds a country by id, ignoring surrounding whitespace and case. Blank ids find nothing.
format_timer_iso_duration
Machine-readable ISO 8601 duration for <time datetime>, such as PT1H2M3S or P2DT4H.
heading_anchor_href
The same-document fragment for a heading id, or None for a blank id, like resolveLumenHeadingAnchorHref.
heading_anchor_url
The absolute URL of a section: base without its fragment, plus the heading id, like resolveLumenHeadingAnchorUrl.
input_otp_normalize_numeric
Strict numeric code normalization for a single editor, like lumen-core’s normalizeLumenNumericOTP: decimal digits of any script become ASCII, - and white space separators are dropped, and anything else (or more than length digits, or input longer than 128 UTF-16 code units) returns Ok(None).
input_otp_sanitize
Normalizes a proposed code like lumen-react’s useInputOTP: numeric codes (numeric input mode or the default [0-9]* pattern) keep ASCII digits only, other codes drop white space, and the result is cut to length characters.
is_timer_completion
Whether a countdown moved from running to complete between two snapshots.
language_toggle_default_locales
English and Spanish, the default locales of lumen-core.
language_toggle_locales
Trims locales and drops blank or duplicate entries, like normalizeLumenLocales. An empty result falls back to the defaults.
language_toggle_pair
The current locale for value (the first locale when it is unknown) and the one after it, like getLumenLocalePair.
load_more_announcement
The polite announcement after a load finishes, like resolveLumenLoadMoreAnnouncement: the pluralized added count (or loaded_label when the feed is not counted), followed by done_label once the feed is exhausted.
move_reorderable_list_item
Moves the entry at from to to and returns the new order. Out-of-range requests return the original order.
move_schedule_event
Returns events with the event event_id moved to a new start and end, and to resource_id when it is set and not empty.
next_data_table_sorting
Header activation with multi-sort: a plain activation replaces the criteria with one column (reversing it when it is already primary). Additive activation appends an ascending criterion or reverses an existing one without changing its priority. Without multi-sort, use cycle_data_table_sorting.
next_message_feedback
The rating after the person presses pressed, like nextLumenMessageFeedback in @santi020k/lumen-core: pressing the current rating clears it, and pressing the other one replaces it.
next_route_progress_value
The next trickle value: fast at first, slowing near the end, and never past the cap.
normalize_image_comparison_value
Clamps a reveal position to 0 through 100 and rounds it to the slider step; non-finite values become 50, like normalizeLumenImageComparisonValue.
normalize_media_viewport
Clamps zoom and pan like normalizeLumenMediaViewport; pan resets at zoom 1.
normalize_progress
Clamp a progress value and maximum the same way every Lumen adapter does.
normalize_prompt_composer_limit
A usable prompt length limit: 1 to i32::MAX, defaulting to 4000 for zero.
normalize_prompt_suggestions
Keeps suggestions with a visible label, trims both fields, and falls back to the label as the prompt, like normalizeLumenPromptSuggestions in @santi020k/lumen-core.
normalize_theme_builder_hex
Normalizes #rgb or #rrggbb to lowercase #rrggbb (normalizeThemeBuilderHex).
normalize_theme_builder_hue
Rounds a hue to whole degrees and wraps it into 0..360 (normalizeThemeBuilderHue).
normalize_world_map_countries
Validates country geometry: trims ids and converts them to uppercase, and drops entries with a blank id, name, or path, a non-finite label anchor, or an id seen earlier.
normalize_world_map_highlighted
Trims, converts to uppercase, and deduplicates highlighted country ids, and drops blank ids and ids that are not in countries, so a typo degrades gracefully instead of breaking the map.
normalize_world_map_markers
Validates markers: trims the id and label, requires both to be non-blank, requires finite coordinates inside the visible latitude band and longitude -180 to 180, and drops markers whose id was seen earlier.
normalize_world_map_zoom
Clamps a zoom level to 1 through 8. Non-finite values reset to 1.
number_field_in_bounds
Whether a draft is a complete number inside the inclusive bounds, like isLumenDecimalInBounds.
number_field_parse_draft
Parses a draft in a locale’s digits and decimal separator. Grouping, exponents, white space, and drafts over 128 UTF-16 code units are invalid. Like parseLumenDecimalDraft.
number_field_step_draft
Adds or subtracts one step from a draft and clamps it to the inclusive bounds, like stepLumenDecimalDraft. An empty draft starts from min, a negative max, or zero.
pagination_items
The pagination entries to render: boundaries pages pinned at each end, siblings pages on each side of the current page, and an ellipsis for every hidden run longer than one page.
pagination_page
Clamps a page number into 1..=total, like normalizeLumenPaginationPage.
pan_media_viewport
Maps a pointer drag of delta_x by delta_y pixels over a width by height stage to a new pan, like panLumenMediaViewport.
parse_theme_builder_number
Reads a number from text the way JavaScript’s Number() does, for option fields.
parse_timer_instant
Parses a timer instant into epoch milliseconds.
project_world_map_coordinate
Projects a longitude and latitude to the shared viewBox with the equirectangular projection used for every country path.
qr_code_data_url
The data: URL of the QR code for value, byte for byte what lumen-react renders with uqr. Returns None when the value does not fit in a QR code.
reorderable_list_pointer_index
Index a dragged item takes for a pointer at position, given the vertical midpoints of the other items in display order. Non-finite positions keep the item where it is.
resize_schedule_event
Moves one edge of an event to next_date_time, snapped to snap_minutes and clamped to the min and max bounds. The event keeps at least one minute of duration unless a bound forces it shorter.
resize_schedule_events
Applies resize_schedule_event to the event event_id and returns every event.
resolve_media_max_zoom
Clamps a maximum zoom to 1 through 16; non-finite values become 4.
resolve_meter_range
Normalizes a meter range the way the native element does.
resolve_meter_segments
A segment count from 2 to 24, or None for a continuous meter.
resolve_meter_value_text
Text for a meter’s aria-valuetext, such as 3 of 5, or None for a continuous meter without a value_label (which keeps the native percentage reading).
resolve_reasoning_open
Whether a Reasoning disclosure is open after its status changes, like resolveLumenReasoningOpen in @santi020k/lumen-core.
resolve_source_citation_href
A safe citation destination: an http or https URL without credentials (serialized the way the browser URL parser does for common inputs), or a local absolute path such as /docs. Executable schemes, protocol-relative URLs, and URLs with control characters, spaces, or backslashes return None.
resolve_table_record_slots
Each column’s record slot, like lumen-core’s resolveLumenTableRecordSlots, from each column’s (slot, secondary) pair. Only the first Title is the title; later ones get no slot. When no column is the title, the first column without a slot of its own that isn’t secondary becomes it, so every card gets a heading that stays visible.
resolve_timer_config
Normalizes component input into a complete timer configuration.
resolve_timer_units
Resolves the displayed units, largest first and without duplicates.
resolve_timer_units_list
Resolves units from a comma or whitespace separated list, such as "hours, minutes".
resolve_world_map_country_label
Resolves a country’s display label.
schedule_conflicts
Every overlapping pair of events, in input order.
schedule_events_overlap
Whether two different events overlap on the same resource. Events on different resources never overlap; an event with an invalid range overlaps everything on its resource.
score_theme_builder_contrast
Scores the contrast of two tokens (scoreThemeContrast), such as "ink" on "canvas".
scroll_progress_ratio
Reading progress of a scroll container as a ratio between 0 and 1.
selection_bar_format_count
Formats a count with the locale’s digit grouping, like Intl.NumberFormat for whole numbers in common languages.
selection_bar_plural
The plural category of a whole count, following CLDR cardinal rules for common languages. Unknown languages use the English rule.
share_links
Resolves targets (first-seen order, duplicates dropped), labels, and destinations, like createLumenShareLinks. Unsafe URLs produce no links.
share_links_href
Builds a platform share intent, or None when url is not a safe http(s) URL, like createLumenShareHref.
share_links_url
The normalized http(s) URL to share, or None for any other scheme, credentials, control characters, or unparsable input, like resolveLumenShareUrl.
sort_data_table_rows
Row indexes in display order. Manual mode keeps the given order; client mode sorts stably by each sortable criterion in priority order.
split_timer_duration
Splits whole seconds into the requested units.
suggest_theme_builder_readable_ink
Picks black or white ink for a background, preferring black on ties (suggestReadableInk).
swipe_card_axis
The locked axis of a drag, or None while it is within the slop.
swipe_card_commit_distance
Distance in pixels a drag must travel on a card of width to commit.
swipe_card_cue_opacity
Opacity of the start and end cues while dragging.
swipe_card_direction
Logical direction of a horizontal movement. Zero has no direction.
swipe_card_key_direction
Maps ArrowLeft and ArrowRight to the action on that side of the card.
swipe_card_physical_sign
Physical sign (-1 left, 1 right) a card travels when it leaves toward direction.
swipe_card_progress
Signed drag progress from -1 to 1, relative to the commit distance.
swipe_card_release
Whether a released drag commits: past the distance threshold, or on a flick moving the same way as the drag. Anything else springs back.
table_cell_class
The classes of a column’s body cells, like lumen-core’s getLumenTableCellClasses: the slot class, then ui-table__cell--secondary, which a title never gets. None when there are none.
table_header_class
The classes of a column’s header cell, like lumen-core’s getLumenTableHeaderClasses: only the title and secondary markers apply to th. None when there are none.
terminal_copy_value
Joins the command lines without prompts, like getLumenTerminalCopyValue, so pasting runs exactly what is shown.
theme_builder_contrast_ratio
The WCAG contrast ratio of two HSL token values, rounded to two decimals (getContrastRatio).
theme_builder_hex_to_hsl
Converts a hex color to its hue and an HSL token value such as "217 91% 60%" (themeBuilderHexToHsl). Returns None when the color isn’t valid hex.
theme_builder_style
Inline CSS that applies theme tokens as custom properties, for a preview region.
theme_builder_tokens_from_hue
Derives a complete token set from a brand hue (createThemeFromHue).
theme_toggle_is_dark
Whether theme is a dark theme: the configured dark theme or any *-dark preset, like the Lumen web runtime.
timer_announcement
Live-region text for a tick, or None to stay silent.
timer_instant_from_millis
Converts numeric epoch milliseconds into a timer instant.
timer_seconds
Whole seconds to display.
timer_snapshot
Computes everything a timer renders at now (epoch milliseconds). Pure and deterministic.
timer_tick_delay
Milliseconds, from 1 to 1000, until the displayed second next changes.
toggle_data_table_id
Adds the id when missing, removes it when present.
toggle_data_table_ids
Selects every rendered row, or clears them when all are selected. Ids outside the rendered rows, such as rows on other server pages, are kept.
toggle_data_table_view_sort
The criteria after a header activation in a DataTableView: a new criterion starts ascending, an existing one reverses, and multiple keeps the others.
tune_theme_builder_contrast
Returns a copy of the tokens whose foreground token reaches WCAG AA on background (tuneThemeContrast).
use_context_menu
A closed context menu controller.
use_dialog
A closed dialog controller, like useDialog in lumen-react. Pass it to a DialogTrigger and to the dialog prop of Dialog, AlertDialog, Sheet, or Drawer.
use_direction
The direction of the nearest Direction ancestor, or DirectionValue::Ltr without one.
use_search_dialog
A closed search dialog controller. Pass it to SearchDialogTriggers and to the dialog prop of the SearchDialog they open.
use_toast
The toast API of the nearest ToastProvider.
valid_data_table_columns
Valid columns: non-empty, unique keys. Anything else yields no columns, like lumen-react.
valid_data_table_rows
Whether every row has a non-empty, unique id (rows without an id use their index).
valid_data_table_sorting
Unique criteria in priority order; later duplicates of a key are dropped.
virtual_list_window
Computes the rows to render, like getLumenVirtualWindow in lumen-core: the rows inside offset..offset + viewport plus overscan rows on each side, and the focused row with its neighbors so keyboard users can Tab out of the window.
world_map_countries
The bundled country geometry: 238 countries and territories from Natural Earth (public domain), with uppercase ids and path bounds.
world_map_pan_threshold_reached
Whether a pointer that moved dx, dy CSS pixels since it was pressed has traveled far enough to start panning. Shorter moves stay clicks.
world_map_path_bounds
Computes the bounding box of SVG path data that uses only absolute M, L, and Z commands, as the bundled countries do.
world_map_select_detail
Builds the selection details for country. highlighted_ids should be normalized, as returned by normalize_world_map_highlighted.
world_map_wheel_zoom_factor
Zoom multiplier for a modified (Ctrl or Cmd) wheel event: exp(-delta_y * 0.002), with the delta clamped to ±1000 pixels. Convert line deltas (×16) and page deltas (× viewport height) to pixels first. A non-finite delta gives 1.

Type Aliases§

AccordionIcon
Disclosure indicator inherited by every Accordion item.
AlertDialogProps
Props for AlertDialog.
DialogFormFuture
The request a DialogForm’s submit callback starts. Return Box::pin(async move { ... }) from a closure annotated -> DialogFormFuture.
DialogFormResult
What a DialogForm request resolves to: field and form errors keep the dialog open and show them, no errors close it, and a DialogFormFailure shows the failure message.
DrawerProps
Props for Drawer.
GridElement
The element rendered by Grid.
RadioCardProps
Props for RadioCard; the same as CheckboxCardProps.
RadioCardVariant
Surface style of a RadioCard; the same type as CheckboxCardVariant.
SearchDialogFuture
The future a SearchDialog search provider returns: the results for a query, or an error message, which shows the failure status with a retry button.
SecretValueFuture
The future load_value returns: the secret, or an error message for on_load_error.
StackElement
The element rendered by Stack.
StackGap
Gap between Stack children.
SwitchProps
Props for Switch; the same as CheckboxProps.