Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

TabsProps

Props accepted by the tabs root.

Import

import type { TabsProps } from "@dartwic/interface-sdk/ui";

Declaration

export interface TabsProps extends HostComponentProps {
    /** Controlled active tab value. */
    value?: string;
    /** Initial uncontrolled tab value. */
    defaultValue?: string;
    /** Called when the active tab changes. */
    onValueChange?: (value: string) => void;
}

Members

NameTypeRequirementDescription
valuestringOptionalControlled active tab value.
defaultValuestringOptionalInitial uncontrolled tab value.
onValueChange(value: string) => voidOptionalCalled when the active tab changes.