Skip to content

Feature request: Support multiple custom header buttons #93

@lionnel8

Description

@lionnel8

Current behavior

HeaderOption supports only one button per side (leftAction, rightAction).

type HeaderOption = {
  leftAction?: { icon: HeaderIcon; onClick: () => void };
  rightAction?: { icon: HeaderIcon; onClick: () => void };
};

This is sufficient for simple headers, but it limits flexibility when multiple contextual or custom actions are needed on one side of the header.

Proposed change

Allow arrays instead:

type HeaderOption = {
  leftActions?: { icon: HeaderIcon; onClick: () => void }[];
  rightActions?: { icon: HeaderIcon; onClick: () => void }[];
};

This change would make it possible to create more complex and flexible header configurations without the need for hacks or additional wrapper components.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions