ProviderButton
Renders one social auth provider button with the package styling and provider metadata.
Import
import { ProviderButton } from "@xylex-group/athena-auth-ui"Details
- Category:
component - Primary entrypoint:
@xylex-group/athena-auth-ui - Public entrypoints:
@xylex-group/athena-auth-ui - Source:
packages/heroui/src/components/auth/provider-button.tsx
Props
| Prop | Type | Required | Notes |
|---|---|---|---|
provider | string | Yes | |
display | "name" | "full" | "icon" | undefined | No | |
ui | AthenaAuthUiOptions | undefined | No | |
variant | "secondary" | "tertiary" | "danger" | "danger-soft" | "ghost" | "outline" | "primary" | undefined | No | |
className | ClassNameOrFunction<ButtonRenderProps> | undefined | No | The CSS className for the element. A function may be provided to compute the class based on component state. |
id | string | undefined | No | The element's unique identifier. See MDN. |
name | string | undefined | No | Submitted as a pair with the button's value as part of the form data. |
type | "reset" | "button" | "submit" | undefined | No | The behavior of the button when used in an HTML form. |
render | DOMRenderFunction<"button", ButtonRenderProps> | undefined | No | Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: * You must render the expected element type (e.g. if <button> is expected, you cannot render an <a>). * Only a single root DOM element can be rendered (no fragments). * You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate. |
size | "lg" | "md" | "sm" | undefined | No | |
__button_group_child | boolean | undefined | No | |
isDisabled | boolean | undefined | No | Whether the button is disabled. |
onPressStart | ((e: PressEvent) => void) | undefined | No | Handler that is called when a press interaction starts. |
onPressEnd | ((e: PressEvent) => void) | undefined | No | Handler that is called when a press interaction ends, either over the target or when the pointer leaves the target. |
onPressChange | ((isPressed: boolean) => void) | undefined | No | Handler that is called when the press state changes. |
onPressUp | ((e: PressEvent) => void) | undefined | No | Handler that is called when a press is released over the target, regardless of whether it started on the target or not. |
onClick | ((e: MouseEvent<FocusableElement>) => void) | undefined | No | Not recommended – use onPress instead. onClick is an alias for onPress provided for compatibility with other libraries. onPress provides additional event details for non-mouse interactions. |
autoFocus | boolean | undefined | No | Whether the element should receive focus on render. |
onFocus | ((e: FocusEvent<Element, Element>) => void) | undefined | No | Handler that is called when the element receives focus. |
onBlur | ((e: FocusEvent<Element, Element>) => void) | undefined | No | Handler that is called when the element loses focus. |
onFocusChange | ((isFocused: boolean) => void) | undefined | No | Handler that is called when the element's focus status changes. |
onKeyDown | ((e: KeyboardEvent) => void) | undefined | No | Handler that is called when a key is pressed. |
onKeyUp | ((e: KeyboardEvent) => void) | undefined | No | Handler that is called when a key is released. |
aria-disabled | boolean | "true" | "false" | undefined | No | Indicates whether the element is disabled to users of assistive technology. |
aria-expanded | boolean | "true" | "false" | undefined | No | Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. |
aria-haspopup | boolean | "grid" | "true" | "false" | "menu" | "listbox" | "tree" | "dialog" | undefined | No | Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. |
aria-controls | string | undefined | No | Identifies the element (or elements) whose contents or presence are controlled by the current element. |
aria-pressed | boolean | "true" | "false" | "mixed" | undefined | No | Indicates the current "pressed" state of toggle buttons. |
aria-current | boolean | "true" | "false" | "date" | "time" | "page" | "step" | "location" | undefined | No | Indicates whether this element represents the current item within a container or set of related elements. |
preventFocusOnPress | boolean | undefined | No | Whether to prevent focus from moving to the button when pressing it. Caution, this can make the button inaccessible and should only be used when alternative keyboard interaction is provided, such as ComboBox's MenuTrigger or a NumberField's increment/decrement control. |
form | string | undefined | No | The <form> element to associate the button with. The value of this attribute must be the id of a <form> in the same document. See MDN. |
formAction | string | ((formData: FormData) => void | Promise<void>) | undefined | No | The URL that processes the information submitted by the button. Overrides the action attribute of the button's form owner. |
formEncType | string | undefined | No | Indicates how to encode the form data that is submitted. |
formMethod | string | undefined | No | Indicates the HTTP method used to submit the form. |
formNoValidate | boolean | undefined | No | Indicates that the form is not to be validated when it is submitted. |
formTarget | string | undefined | No | Overrides the target attribute of the button's form owner. |
value | string | undefined | No | The value associated with the button's name when it's submitted with the form data. |
excludeFromTabOrder | boolean | undefined | No | Whether to exclude the element from the sequential tab order. If true, the element will not be focusable via the keyboard by tabbing. This should be avoided except in rare scenarios where an alternative means of accessing the element or its functionality via the keyboard is available. |
aria-label | string | undefined | No | Defines a string value that labels the current element. |
aria-labelledby | string | undefined | No | Identifies the element (or elements) that labels the current element. |
aria-describedby | string | undefined | No | Identifies the element (or elements) that describes the object. |
aria-details | string | undefined | No | Identifies the element (or elements) that provide a detailed, extended description for the object. |
dir | string | undefined | No | |
lang | string | undefined | No | |
hidden | boolean | undefined | No | |
inert | boolean | undefined | No | |
translate | "yes" | "no" | undefined | No | |
onClickCapture | MouseEventHandler<HTMLButtonElement> | undefined | No | |
onAuxClick | MouseEventHandler<HTMLButtonElement> | undefined | No | |
onAuxClickCapture | MouseEventHandler<HTMLButtonElement> | undefined | No | |
onContextMenu | MouseEventHandler<HTMLButtonElement> | undefined | No | |
onContextMenuCapture | MouseEventHandler<HTMLButtonElement> | undefined | No | |
onDoubleClick | MouseEventHandler<HTMLButtonElement> | undefined | No | |
onDoubleClickCapture | MouseEventHandler<HTMLButtonElement> | undefined | No | |
onMouseDown | MouseEventHandler<HTMLButtonElement> | undefined | No | |
onMouseDownCapture | MouseEventHandler<HTMLButtonElement> | undefined | No | |
onMouseEnter | MouseEventHandler<HTMLButtonElement> | undefined | No | |
onMouseLeave | MouseEventHandler<HTMLButtonElement> | undefined | No | |
onMouseMove | MouseEventHandler<HTMLButtonElement> | undefined | No | |
onMouseMoveCapture | MouseEventHandler<HTMLButtonElement> | undefined | No | |
onMouseOut | MouseEventHandler<HTMLButtonElement> | undefined | No | |
onMouseOutCapture | MouseEventHandler<HTMLButtonElement> | undefined | No | |
onMouseOver | MouseEventHandler<HTMLButtonElement> | undefined | No | |
onMouseOverCapture | MouseEventHandler<HTMLButtonElement> | undefined | No | |
onMouseUp | MouseEventHandler<HTMLButtonElement> | undefined | No | |
onMouseUpCapture | MouseEventHandler<HTMLButtonElement> | undefined | No | |
onTouchCancel | TouchEventHandler<HTMLButtonElement> | undefined | No | |
onTouchCancelCapture | TouchEventHandler<HTMLButtonElement> | undefined | No | |
onTouchEnd | TouchEventHandler<HTMLButtonElement> | undefined | No | |
onTouchEndCapture | TouchEventHandler<HTMLButtonElement> | undefined | No | |
onTouchMove | TouchEventHandler<HTMLButtonElement> | undefined | No | |
onTouchMoveCapture | TouchEventHandler<HTMLButtonElement> | undefined | No | |
onTouchStart | TouchEventHandler<HTMLButtonElement> | undefined | No | |
onTouchStartCapture | TouchEventHandler<HTMLButtonElement> | undefined | No | |
onPointerDown | PointerEventHandler<HTMLButtonElement> | undefined | No | |
onPointerDownCapture | PointerEventHandler<HTMLButtonElement> | undefined | No | |
onPointerMove | PointerEventHandler<HTMLButtonElement> | undefined | No | |
onPointerMoveCapture | PointerEventHandler<HTMLButtonElement> | undefined | No | |
onPointerUp | PointerEventHandler<HTMLButtonElement> | undefined | No | |
onPointerUpCapture | PointerEventHandler<HTMLButtonElement> | undefined | No | |
onPointerCancel | PointerEventHandler<HTMLButtonElement> | undefined | No | |
onPointerCancelCapture | PointerEventHandler<HTMLButtonElement> | undefined | No | |
onPointerEnter | PointerEventHandler<HTMLButtonElement> | undefined | No | |
onPointerLeave | PointerEventHandler<HTMLButtonElement> | undefined | No | |
onPointerOver | PointerEventHandler<HTMLButtonElement> | undefined | No | |
onPointerOverCapture | PointerEventHandler<HTMLButtonElement> | undefined | No | |
onPointerOut | PointerEventHandler<HTMLButtonElement> | undefined | No | |
onPointerOutCapture | PointerEventHandler<HTMLButtonElement> | undefined | No | |
onGotPointerCapture | PointerEventHandler<HTMLButtonElement> | undefined | No | |
onGotPointerCaptureCapture | PointerEventHandler<HTMLButtonElement> | undefined | No | |
onLostPointerCapture | PointerEventHandler<HTMLButtonElement> | undefined | No | |
onLostPointerCaptureCapture | PointerEventHandler<HTMLButtonElement> | undefined | No | |
onScroll | UIEventHandler<HTMLButtonElement> | undefined | No | |
onScrollCapture | UIEventHandler<HTMLButtonElement> | undefined | No | |
onWheel | WheelEventHandler<HTMLButtonElement> | undefined | No | |
onWheelCapture | WheelEventHandler<HTMLButtonElement> | undefined | No | |
onAnimationStart | AnimationEventHandler<HTMLButtonElement> | undefined | No | |
onAnimationStartCapture | AnimationEventHandler<HTMLButtonElement> | undefined | No | |
onAnimationEnd | AnimationEventHandler<HTMLButtonElement> | undefined | No | |
onAnimationEndCapture | AnimationEventHandler<HTMLButtonElement> | undefined | No | |
onAnimationIteration | AnimationEventHandler<HTMLButtonElement> | undefined | No | |
onAnimationIterationCapture | AnimationEventHandler<HTMLButtonElement> | undefined | No | |
onTransitionCancel | TransitionEventHandler<HTMLButtonElement> | undefined | No | |
onTransitionCancelCapture | TransitionEventHandler<HTMLButtonElement> | undefined | No | |
onTransitionEnd | TransitionEventHandler<HTMLButtonElement> | undefined | No | |
onTransitionEndCapture | TransitionEventHandler<HTMLButtonElement> | undefined | No | |
onTransitionRun | TransitionEventHandler<HTMLButtonElement> | undefined | No | |
onTransitionRunCapture | TransitionEventHandler<HTMLButtonElement> | undefined | No | |
onTransitionStart | TransitionEventHandler<HTMLButtonElement> | undefined | No | |
onTransitionStartCapture | TransitionEventHandler<HTMLButtonElement> | undefined | No | |
fullWidth | boolean | undefined | No | |
isIconOnly | boolean | undefined | No | |
onHoverStart | ((e: HoverEvent) => void) | undefined | No | Handler that is called when a hover interaction starts. |
onHoverEnd | ((e: HoverEvent) => void) | undefined | No | Handler that is called when a hover interaction ends. |
onHoverChange | ((isHovering: boolean) => void) | undefined | No | Handler that is called when the hover state changes. |
slot | string | null | undefined | No | A slot name for the component. Slots allow the component to receive props from a parent component. An explicit null value indicates that the local props completely override all props received from a parent. |
style | StyleOrFunction<ButtonRenderProps> | undefined | No | The inline style for the element. A function may be provided to compute the style based on component state. |
ref | Ref<HTMLButtonElement> | undefined | No | Allows getting a ref to the component instance. Once the component unmounts, React will set ref.current to null (or call the ref with null if you passed a callback ref). |
key | Key | null | undefined | No |
Notes
- Most interactive auth components expect to be rendered under
AuthProviderso hooks such asuseAuthand the configured navigation bridge are available. - See Customization Guide for provider-level localization, route overrides, class-name slots, loading overrides, and email template key mapping.