tuil
ReferenceComponentsLayout and panes

SplitPaneProps

SplitPaneProps component contract.

View rawEdit

Type

export interface SplitPaneProps
  extends CommonComponentProps,
    SlottedComponentProps<
      SplitPaneSlots,
      {
        readonly focused: boolean;
        readonly activeDivider: number;
        readonly sizes: readonly number[];
      }
    > {
  readonly panes: readonly SplitPaneItem[];
  readonly orientation?: "horizontal" | "vertical";
  readonly sizes?: readonly number[];
  readonly defaultSizes?: readonly number[];
  readonly onSizesChange?: (sizes: readonly number[]) => void | Promise<void>;
  readonly resizeStep?: number;
  readonly showHelp?: boolean;
  readonly autoFocus?: boolean;
}

Members

MemberTypeRequiredDescriptionRelated types
panesreadonly SplitPaneItem[]YesThe panes member uses the readonly SplitPaneItem[] contract.
orientation"horizontal" | "vertical" | undefinedNoThe orientation member uses the "horizontal" | "vertical" | undefined contract.
sizesreadonly number[] | undefinedNoThe sizes member uses the readonly number[] | undefined contract.
defaultSizesreadonly number[] | undefinedNoThe defaultSizes member uses the readonly number[] | undefined contract.
onSizesChange((sizes: readonly number[]) => void | Promise<void>) | undefinedNoThe onSizesChange member uses the ((sizes: readonly number[]) => void | Promise<void>) | undefined contract.
resizeStepnumber | undefinedNoThe resizeStep member uses the number | undefined contract.
showHelpboolean | undefinedNoThe showHelp member uses the boolean | undefined contract.
autoFocusboolean | undefinedNoThe autoFocus member uses the boolean | undefined contract.
variantstring | undefinedNoThe variant member uses the string | undefined contract.
size"sm" | "md" | "lg" | undefinedNoThe size member uses the "sm" | "md" | "lg" | undefined contract.
unstyledboolean | undefinedNoThe unstyled member uses the boolean | undefined contract.
classNamestring | undefinedNoThe className member uses the string | undefined contract.
layoutPartial<Omit<LayoutNodeInput, "children" | "id" | "semantics">> | undefinedNoThe layout member uses the Partial<Omit<LayoutNodeInput, "children" | "id" | "semantics">> | undefined contract.
idstring | undefinedNoThe id member uses the string | undefined contract.
testIdstring | undefinedNoThe testId member uses the string | undefined contract.
roleSemanticRole | undefinedNoThe role member uses the SemanticRole | undefined contract.SemanticRole
labelstring | undefinedNoThe label member uses the string | undefined contract.
descriptionstring | undefinedNoThe description member uses the string | undefined contract.
disabledboolean | undefinedNoThe disabled member uses the boolean | undefined contract.
readOnlyboolean | undefinedNoThe readOnly member uses the boolean | undefined contract.
selectedboolean | undefinedNoThe selected member uses the boolean | undefined contract.
checkedboolean | undefinedNoThe checked member uses the boolean | undefined contract.
expandedboolean | undefinedNoThe expanded member uses the boolean | undefined contract.
valueTextstring | undefinedNoThe valueText member uses the string | undefined contract.
slotsPartial<SlotComponents<&#123; root: import("ink").BoxProps; track: import("ink").BoxProps; pane: import("ink").BoxProps; divider: import("ink").TextProps; help: import("ink").TextProps; &#125;>> | undefinedNoThe slots member uses the Partial<SlotComponents<&#123; root: import("ink").BoxProps; track: import("ink").BoxProps; pane: import("ink").BoxProps; divider: import("ink").TextProps; help: import("ink").TextProps; &#125;>> | undefined contract.BoxProps, SlotComponents, TextProps
slotPropsPartial<SlotProps<&#123; root: import("ink").BoxProps; track: import("ink").BoxProps; pane: import("ink").BoxProps; divider: import("ink").TextProps; help: import("ink").TextProps; &#125;, &#123; readonly focused: boolean; readonly activeDivider: number; readonly sizes: readonly number[]; &#125;>> | undefinedNoThe slotProps member uses the Partial<SlotProps<&#123; root: import("ink").BoxProps; track: import("ink").BoxProps; pane: import("ink").BoxProps; divider: import("ink").TextProps; help: import("ink").TextProps; &#125;, &#123; readonly focused: boolean; readonly activeDivider: number; readonly sizes: readonly number[]; &#125;>> | undefined contract.BoxProps, SlotProps, TextProps

Source

View the secondary source reference

On this page