Enode — API Reference
    Preparing search index...

    Type Alias UnderlineTabsProps<Id>

    UnderlineTabsProps: UnderlineTabsCommon<Id> & (
        | {
            linkComponent?: UnderlineTabsLink;
            onSelect?: never;
            replace?: boolean;
            tabs: readonly UnderlineLinkTab<Id>[];
        }
        | {
            linkComponent?: never;
            onSelect: (id: Id) => void;
            replace?: never;
            tabs: readonly UnderlineTab<Id>[];
        }
    )

    Props of UnderlineTabs: link tabs or in-memory tabs.

    Type Parameters

    • Id extends string

    Type Declaration

    • {
          linkComponent?: UnderlineTabsLink;
          onSelect?: never;
          replace?: boolean;
          tabs: readonly UnderlineLinkTab<Id>[];
      }
      • OptionallinkComponent?: UnderlineTabsLink

        Renders each tab; default a plain <a>.

      • OptionalonSelect?: never
      • Optionalreplace?: boolean

        Swap the history entry instead of adding one (tabs that are query parameters of one page); the page keeps its scroll position then.

      • tabs: readonly UnderlineLinkTab<Id>[]
    • {
          linkComponent?: never;
          onSelect: (id: Id) => void;
          replace?: never;
          tabs: readonly UnderlineTab<Id>[];
      }
      • OptionallinkComponent?: never
      • onSelect: (id: Id) => void

        In-memory tabs: each tab is a button that calls this.

      • Optionalreplace?: never
      • tabs: readonly UnderlineTab<Id>[]