Function useButton

  • Provides the behavior and accessibility implementation for a button component. Handles mouse, keyboard, and touch interactions, focus behavior, and ARIA props for both native button elements.

    Parameters

    Returns HeadlessButtonValue

    An object which identity never changes between renders.