Components
Components

API

Everything below is exported from the package root unless noted otherwise.

Object inspector

ExportKindSummary
ObjectInspectorcomponentSchema-driven inspector for hierarchical data with view + edit modes.
inferredAdapteradapterSchema-less adapter — derives node kinds from the runtime value.
inferKindfunctionReturns a ValueKind for any JS value.
zodAdapteradapterDrives the inspector from a Zod schema (also at @dev-bench/components/object-inspector/zod-adapter).
DEFAULT_INSPECTOR_FEATURESconstFeature flags applied when none are passed.
resolveInspectorFeaturesfunctionMerges partial feature flags with the defaults.

Types: CopyOption, CustomRenderer, EditResult, ObjectInspectorFeatures, ObjectInspectorMode, ObjectInspectorProps, Path, PartialInspectorFeatures, RendererEditContext, RendererMatchContext, RendererViewContext, SchemaAdapter, SchemaNode, ValidationError, ValueKind.

Console family

ExportKindSummary
ConsolePanelcomponentFilterable, grouped log viewer.
BottomDrawercomponentResizable drawer commonly used to host ConsolePanel.
TraceTreecomponentHierarchical span/trace viewer.
HttpInspectorcomponentRequest/response browser backed by an HttpCache.
entryKindfunctionDiscriminator helper for ConsoleEntry.
resolveFeaturesfunctionMerges partial ConsoleFeatures with DEFAULT_CONSOLE_FEATURES.
resolveTraceFeaturesfunctionMerges partial TraceFeatures with DEFAULT_TRACE_FEATURES.
DEFAULT_CONSOLE_FEATURESconstDefault feature flags for ConsolePanel.
DEFAULT_TRACE_FEATURESconstDefault feature flags for TraceTree.

Types: BottomDrawerProps, ColumnsConfig, ConsoleEntry, ConsoleEntryCount, ConsoleEntryError, ConsoleEntryGroup, ConsoleEntryLog, ConsoleEntryTable, ConsoleEntryTime, ConsoleFeatures, ConsoleGroupStatus, ConsoleLevel, ConsoleLevelOrAll, ConsolePanelProps, ConsoleSource, GroupCollapseDefault, HttpCache, HttpInspectorProps, HttpMethod, HttpRequestRow, PartialConsoleFeatures, PartialTraceFeatures, Span, SpanStatus, TimestampFormat, ToolbarConfig, TraceFeatures, TraceTreeProps.

Command palette

ExportKindSummary
CommandPalettecomponentCmd-K palette with grouped actions and keyboard navigation.

Types: CommandAction, CommandPaletteProps.

Tweaks

ExportKindSummary
TweaksPanelcomponentCollapsible panel that hosts TweakSections.
TweakSectioncomponentGroup of related tweak controls.
TweakRadiocomponentRadio control for enum-style options.
TweakSlidercomponentNumeric slider with min/max/step.
TweakTogglecomponentBoolean toggle.
useTweakshookPersisted, typed tweak state with reset semantics.

Types: TweakRadioOption, TweakSliderProps, TweaksPanelProps, UseTweaksReturn.

Primitives

ExportKindSummary
AvatarcomponentImage + initials avatar with AvatarProps.
ChipcomponentStatus/label chip.
IconcomponentIcon glyph keyed by IconName.
JsonTreecomponentCompact JSON tree (lighter alternative to ObjectInspector).
PipcomponentSmall dot indicator (PipKind-tinted).
SparklinecomponentInline numeric sparkline.
SpinnercomponentIndeterminate progress spinner.
StatusIconcomponentStatus glyph keyed by StatusKind.
StatusPillcomponentCompact pill that renders a StatusKind.

Types: AvatarProps, ChipProps, IconName, IconProps, JsonTreeProps, JsonValue, PipKind, PipProps, SparklineProps, SpinnerProps, StatusIconProps, StatusKind, StatusPillProps.

Hooks & a11y

ExportKindSummary
useKeyhookBind a keyboard chord/shortcut to a callback.
onActivateKeyfunctionPress-handler that fires on Enter/Space (a11y for non-button activatables).

Types: UseKeySpec.

Subpath exports

PathContents
@dev-bench/componentsAll exports above (ESM bundle, types).
@dev-bench/components/object-inspector/zod-adapterzodAdapter only — import this if you want to keep zod out of your main bundle and code-split the adapter.
@dev-bench/components/styles/tokens.cssCSS custom properties (load first).
@dev-bench/components/styles/components.cssShared primitive styles.
@dev-bench/components/console/styles.cssConsolePanel + TraceTree + HttpInspector styles.
@dev-bench/components/object-inspector/styles.cssObjectInspector styles.

See the generated JSDoc reference for full type signatures.

On this page