Inspector

Exports

Import these components from @mbsw/ui.

Inspector
InspectorContent
InspectorHeader
InspectorSeparator

Props

The tables list common props for each component. See the full types for supported prop combinations and inherited HTML and Radix props.

Inspector

Inspector props
PropTypeRequirement
childrenReactNodeOptional
variant'default' | 'scroll'Optional

Type reference

Show full types

Full TypeScript definitions, including prop combinations and inherited props.

import { type HTMLAttributes, type ReactNode } from 'react';

type DataAttributes = {
    [key: `data-${string}`]: boolean | number | string | undefined;
};

type AsideProps = HTMLAttributes<HTMLElement> & DataAttributes;

type DivProps = HTMLAttributes<HTMLDivElement> & DataAttributes;

export type InspectorVariant = 'default' | 'scroll';

export type InspectorProps = Omit<AsideProps, 'children'> & {
    children?: ReactNode;
    variant?: InspectorVariant;
};

export type InspectorHeaderProps = DivProps;

export type InspectorContentProps = DivProps;

export type InspectorSeparatorProps = Omit<DivProps, 'aria-hidden' | 'children' | 'dangerouslySetInnerHTML' | 'role' | 'tabIndex'> & {
    children?: never;
};

export declare const Inspector: import("react").ForwardRefExoticComponent<Omit<AsideProps, "children"> & {
    children?: ReactNode;
    variant?: InspectorVariant;
} & import("react").RefAttributes<HTMLElement>>;

export declare const InspectorHeader: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & DataAttributes & import("react").RefAttributes<HTMLDivElement>>;

export declare const InspectorSeparator: import("react").ForwardRefExoticComponent<Omit<DivProps, "tabIndex" | "role" | "aria-hidden" | "children" | "dangerouslySetInnerHTML"> & {
    children?: never;
} & import("react").RefAttributes<HTMLDivElement>>;

export declare const InspectorContent: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & DataAttributes & import("react").RefAttributes<HTMLDivElement>>;