# Component Catalog

This guide provides an overview of the ixfx component library, organized by common use cases to help you find the right building blocks for your application.

## Buttons and Controls

### ixfx-button
A styled button component with support for icons, loading states, and flexible layout. Use it as a direct replacement for standard HTML buttons when you need consistent theming and enhanced visual feedback.

### ixfx-split-button
A button that combines a primary action with a dropdown menu. Ideal for actions that have a default behavior plus additional variants (like "Save" with a menu for "Save As", "Save All", etc.).

### ixfx-radio-group
A group of mutually exclusive options that can render as traditional radio buttons or as a toggle switch when used without explicit options. Great for settings panels or form selections where only one choice is allowed.

### ixfx-checkbox
A brutalist-style checkbox with diagonal check mark indicator and indeterminate state support. Perfect for terms acceptance, feature toggles, or any binary selection.

### ixfx-toggle-switch
A compact on/off switch that provides a clear visual indication of state. Use for settings that have two distinct values like enabled/disabled or show/hide.

## Input Components

### ixfx-labelled-range-input
Combines a range slider with a label and optional input field for precise value entry. Use when users need to select from a continuous range of values with both coarse and fine control.

### ixfx-labelled-radial-input
A circular input control for selecting values in a rotational manner. Ideal for color pickers, angle selectors, or any cyclical value selection.

### ixfx-labelled-slider-input
Combines a linear SVG slider with a label and optional input field for precise value entry. Use when users need to select from a continuous range of values with both coarse and fine control, with marker and value-bar styling options.

### ixfx-ac-text
An autocomplete text input that suggests options as the user type. Perfect for search boxes, tag entry, or any field where you want to assist users with predefined options.

### ixfx-ac-token
A token/tag input with per-token autocomplete, where committed tokens appear as inline chips and a suggestion popup follows the typing cursor. Ideal for email recipient fields, tag pickers, or any multi-value entry with per-value suggestions.

### ixfx-narrowed-text
A specialized text input that constrains input length and provides visual feedback about remaining capacity. Use for fields with strict character limits like tweet composition or SMS messages.

### ixfx-editable-label
A label that becomes an inline editor when clicked or focused. Useful for in-place editing of list items, card titles, or any display text that users might need to modify.

### ixfx-editable-number
A numeric label that combines inline text editing with pointer-drag-to-adjust (Ableton-style), optional min/max clamping, step snapping, and a fill-bar visualisation. Use for mixing-console-style numeric controls where both typing and dragging are appropriate.

### ixfx-range-input
A label-free, fully styled range slider wrapping the native `<input type="range">`. Supports horizontal and vertical orientations, custom thumb shapes, gradient fills, and an optional value tooltip. Use as a drop-in replacement for native range inputs when you need consistent theming.

### ixfx-slider-input
A linear SVG-based slider with horizontal/vertical orientations, single/dual/triple value modes, and triangle/needle/dot markers. Use for audio-mixer style multi-handle sliders, threshold selectors, or any interface requiring precise linear control.

### ixfx-radial-input
A rotary dial input rendered as a flattened arc SVG, inspired by music production interfaces. Responds to drag and keyboard input. Use as a building block for custom rotary controls or combine with `ixfx-editable-label` via `ixfx-labelled-radial-input`.

### ixfx-swipe
A touch-friendly swipe/nudge component that produces a value in [-1, 1] based on tap-and-drag distance, emitted only on pointer release. Use as a compact gesture control for audio scrubbing, video seeking, or any value where a spring-back gesture is appropriate.

### ixfx-vertical-list
A scrollable vertical list of items with selection, keyboard navigation, and incremental search. Supports plain `<li>` items in HTML or rich custom elements added programmatically. Use wherever you need a list with first-class keyboard and selection support.

### ixfx-color-picker
A comprehensive color selection tool with multiple modes (hue/saturation/lightness, red/green/blue, etc.) and support for saving custom colors. Use whenever users need to select or adjust colors.

## Display Components

### ixfx-panel
A container component with consistent theming, elevation, and padding. Use as a building block for cards, dialogs, sidebar sections, or any content grouping that needs visual separation.

### ixfx-panel-group
A collection of panels that can be expanded or collapsed, similar to an accordion. Perfect for settings pages, FAQ sections, or any content that benefits from progressive disclosure.

### ixfx-tabs
A tabbed interface for organizing content into separate views. Use when you have related content that users need to switch between frequently.

### ixfx-tab-panel
Individual panels that work with the ixfx-tabs component to create tabbed interfaces.

### ixfx-tab-panels
A container that manages a collection of `ixfx-tab-panel` children and exposes a `selectPanel()` method to switch between them. Pair with `ixfx-tab-list` for a complete tabbed interface.

### ixfx-tab-list
The header bar of a tabbed interface, holding `ixfx-tab-list-item` buttons and emitting a `change` event when the active tab changes. Pair with `ixfx-tab-panels` for a complete tabbed interface.

### ixfx-tab-list-item
Individual tab buttons used inside `ixfx-tab-list`. Use the `for` attribute to associate each button with the id of its corresponding `ixfx-tab-panel`.

### ixfx-data-display
A flexible component for presenting various types of data with consistent formatting. Use for showing metrics, status information, or any structured data that benefits from standardized presentation.

### ixfx-transitory-label
An inline text label that animates between values instead of changing instantly, with fade, slide-up, and other transition effects. Use for status readouts, mode indicators, or any text that benefits from smooth value transitions rather than abrupt updates.

## Navigation Components

### ixfx-menu
A contextual popup menu that can be attached to buttons or other elements. Use for context menus, action menus, or any list of commands that should appear on demand.

### ixfx-menu-bar
A horizontal menu bar typically placed at the top of an application or window. Ideal for main application navigation with dropdown menus.

### ixfx-menu-item
Individual items that populate menus, supporting icons, shortcuts, and various states (disabled, checked, etc.).

### ixfx-breadcrumb-navigation
A component that shows the hierarchical path to the current location. Use in file browsers, documentation sites, or any application with nested content structures.

### ixfx-tree
A hierarchical tree view component for displaying nested data structures. Perfect for file explorers, organizational charts, or any data with parent-child relationships.

### ixfx-crumb-navigation
Similar to breadcrumb navigation but with a more compact representation focused on the immediate path context.

### ixfx-crumb-path
A path-style breadcrumb (e.g. `/users/jane/projects`) with editable path segments and autocomplete dropdowns. Supports lazy-loaded sibling paths. Use for file paths, URL navigation, or any address-bar-style interface where segments can be edited inline.

### ixfx-miller
A Miller column component that displays hierarchical data as multiple vertical columns (like macOS Finder or email clients). Each column shows the children of the selected item in the previous column. Use for navigating deeply nested data with persistent visibility of the path.

### ixfx-grouped-item-lister
A meta-component that renders a typed item list using any sub-component you supply. Items can be displayed in a single sub-component (ungrouped mode) or split into labelled groups, each with its own sub-component (grouped mode). Use for categorised lists, filtered views, or any list that needs both grouping and rich item rendering.

## Layout Components

### ixfx-dock-host / ixfx-dock-panel
A dockable panel system in the style of VS Code. Author a flat pool of `ixfx-dock-panel` elements inside an `ixfx-dock-host`; drag panels by titlebar or tab to tab them together, split panels horizontally/vertically, or drag between hosts. Layouts save and restore via `getViewState()` / `setViewState()` (see `docs/infra-view-state.md`). Drop restrictions are available per host (`accepts` attribute, `canAccept()` callback) and per panel (`accepts`). Use for IDE-like workspaces, dashboards, or any composable multi-panel UI.

### ixfx-split-layout
A resizable n-way split pane that allows users to adjust the proportion between adjacent sections. Supports `row`/`column` directions, positional `sizes` weights, per-child `size`/`min`/`collapsed` attributes, and nested splits for cross-axis layouts. Use for editor layouts, file explorers with previews, or any interface where users need to control space allocation.

### ixfx-snap-container
A container that snaps child elements to specific positions or alignments. Useful for creating custom layouts, dashboards, or any interface where precise element positioning is needed.

### ixfx-polar-pad
A circular input device for selecting points in polar coordinates (angle and radius). Ideal for color pickers, directional controls, or any circular input scenario.

## Visualization Components

### ixfx-xy-pad
A two-dimensional pad for selecting X and Y coordinate values simultaneously. Commonly used for color selection (saturation/brightness), audio filtering, or any 2D parameter space.

### ixfx-single-axis
A component for displaying data along a single axis with appropriate scaling and labeling. Use for simple charts, waveform displays, or any linear data visualization.

### ixfx-xy-axis
A pair of orthogonal axes that work together to create a coordinate system for plotting data. Essential building block for custom charts and graphs.

### ixfx-colour-map
A visualization component that displays data as a color gradient or heatmap. Use for showing intensity distributions, correlation matrices, or any 2D data where color represents value.

### ixfx-timeline
A horizontal timeline for displaying events or data points over time. Perfect for audio/video editing, historical data presentation, or any chronological data visualization.

### ixfx-range
A component for representing and manipulating numerical ranges with visual handles. Use for date/time ranges, value selectors, or any scenario where users need to define a minimum and maximum.

### ixfx-range-multi
An extension of the range component that allows multiple non-overlapping ranges to be selected simultaneously. Ideal for selecting multiple time segments or value ranges.

### ixfx-plot-multi-axis
A multi-series plot that renders several named 1D data streams simultaneously with per-series colours. Use for comparing multiple sensor readings, multi-track audio visualisation, or any scenario where several signals need to share the same axes.

### ixfx-plot-histogram
A histogram plot that bins buffered values into buckets over the observed (or fixed) data range, with no time or sequence axis. Use for value distributions, density estimation, or any scenario where the shape of a dataset matters more than its order.

### ixfx-hex-editor
A hex editor for inspecting and editing binary data, with configurable columns, ASCII/Hex/Offset columns, byte-level selection, drag-to-edit values, undo/redo, and colour-scheme options. Use for binary file inspection, debuggers, or any tool that needs to view or modify raw bytes.

## Utility Components

### ixfx-icon
A flexible icon component that supports both built-in icons and custom SVG content. Use for visual enhancement of buttons, menu items, or any interface element that benefits from symbolic representation.

### ixfx-tooltip
A small popup that appears on hover or focus to provide additional information about an element. Use for explaining icon buttons, providing context for form fields, or any situation where brief supplemental help is needed.

### ixfx-led
A simple indicator light component that can show on/off states or various colors. Use for status indicators, power lights, or any binary state visualization.

### ixfx-horizontal-selector
A compact horizontal control for selecting from a set of options. Use when you need a more space-efficient alternative to radio groups or dropdowns.

### ixfx-incr-search
Incremental (type-ahead) search utilities for filtering data collections or DOM-backed lists in real time. Provides controllers for plain lists, tree components, and Miller columns, with built-in highlighting and keyboard navigation. Use to add fast type-ahead filtering to any list, tree, or column-based interface.

## Component Selection Guidelines

When choosing components for your application, consider these patterns:

### For Forms and Settings
- Use `ixfx-checkbox` for binary options
- Use `ixfx-radio-group` for mutually exclusive choices
- Use `ixfx-labelled-range-input` for numerical parameters with labels
- Use `ixfx-labelled-slider-input` for numerical parameters with labels and slider styling options
- Use `ixfx-toggle-switch` for settings with clear on/off states
- Use `ixfx-range-input` or `ixfx-slider-input` for plain slider-style numeric entry
- Use `ixfx-editable-number` for values that benefit from both typing and dragging
- Use `ixfx-panel` or `ixfx-panel-group` to organize related settings

### For Data Display
- Use `ixfx-data-display` for consistent metric presentation
- Use `ixfx-panel` as containers for grouped information
- Use `ixfx-tabs` to separate different views of related data
- Use visualization components (`ixfx-xy-pad`, `ixfx-single-axis`, `ixfx-plot-multi-axis`, `ixfx-plot-histogram`, etc.) for graphical data representation
- Use `ixfx-transitory-label` for readouts that animate between values

### For Navigation and Selection
- Use `ixfx-menu` for contextual actions
- Use `ixfx-menu-bar` for primary application navigation
- Use `ixfx-tree` for hierarchical data exploration
- Use `ixfx-breadcrumb-navigation` to show location in hierarchies
- Use `ixfx-crumb-path` for path-style navigation with editable segments
- Use `ixfx-miller` for deeply nested data with persistent column visibility
- Use `ixfx-vertical-list` for selectable, keyboard-navigable lists
- Use `ixfx-grouped-item-lister` for typed, optionally grouped item lists
- Use `ixfx-ac-text` for assisted single-value entry with predefined options
- Use `ixfx-ac-token` for multi-value tag/recipient entry with per-token suggestions

### For Layout and Structure
- Use `ixfx-split-layout` for adjustable panes
- Use `ixfx-panel` as basic building blocks
- Use `ixfx-snap-container` for custom positioning needs
- Use `ixfx-tabs` to organize content into separate views

### For Interactive Controls
- Use `ixfx-xy-pad` for 2D parameter control
- Use `ixfx-labelled-radial-input` for labelled rotary parameters
- Use `ixfx-radial-input` for bare rotary dial controls
- Use `ixfx-range` or `ixfx-range-multi` for value ranges
- Use `ixfx-swipe` for spring-back gesture controls
- Use `ixfx-color-picker` for comprehensive color selection
- Use `ixfx-hex-editor` for inspecting or editing raw binary data

This catalog represents the core components available in the ixfx library. Each component is designed to work together through a shared theming system and consistent interaction patterns, allowing you to build cohesive interfaces with minimal effort.

For detailed usage instructions on any specific component, refer to the individual component documentation in the src/ directory or the corresponding user guide documents in @docs-user/.