@dxos/react-ui
    Preparing search index...

    Type Alias ContentProps

    ContentProps:
        | {
            children?: ReactNode;
            icon?: string;
            iconEnd?: string;
            iconOnly?: false;
            label?: string;
            showTooltip?: never;
            tooltipSide?: never;
        }
        | {
            children?: never;
            icon: string;
            iconEnd?: never;
            iconOnly: true;
            label: string;
            showTooltip?: boolean;
            tooltipSide?: Side;
        }

    Content is a label (or children) with optional leading/trailing icons, or a lone icon named by its label.

    Type declaration

    • {
          children?: ReactNode;
          icon?: string;
          iconEnd?: string;
          iconOnly?: false;
          label?: string;
          showTooltip?: never;
          tooltipSide?: never;
      }
      • Optionalchildren?: ReactNode
      • Optionalicon?: string

        Leading icon.

      • OptionaliconEnd?: string

        Trailing icon (e.g. a caret).

      • OptionaliconOnly?: false
      • Optionallabel?: string

        Visible text; children take precedence.

      • OptionalshowTooltip?: never
      • OptionaltooltipSide?: never
    • {
          children?: never;
          icon: string;
          iconEnd?: never;
          iconOnly: true;
          label: string;
          showTooltip?: boolean;
          tooltipSide?: Side;
      }
      • Optionalchildren?: never
      • icon: string
      • OptionaliconEnd?: never
      • iconOnly: true

        A control-sized square inset in a block-sized cell (follow-up 19), showing only the icon.

      • label: string

        Required: names the button (aria-label) and shows in a Tooltip.

      • OptionalshowTooltip?: boolean

        Opt out of the label Tooltip, e.g. when the caller wraps the button in its own Tooltip.Trigger.

      • OptionaltooltipSide?: Side

        Side of the trigger the label Tooltip opens on; below by default.