AuthSsoButton

AuthSsoButton

HkAuthSsoButton is the single-provider sign-in button for an auth screen whose whole channel is one redirect: a large square tile with the provider's mark, and the provider's name in plain sight beneath it. The tile is the click target; the label lives outside it so the target stays a clean square and the name stays readable at rest.

  • A sign-in form that submits to its own backend uses HkAuthSubmitButton.
  • When several providers are offered, render one button per provider side by side — they are independent, not a group.

Import

tsx
1
import { HkAuthSsoButton } from "@celestia-island/hikari";

This component ships in the Vue library only; it has no Rust mirror.

A brand mark

label is required: it is both the caption and the button's accessible name. icon is any renderable node — a brand SVG, an <img>, an icon component. In Vue JSX an SVG's attributes are spelled in kebab case (stroke-width, not strokeWidth). The button never talks to a backend and never builds an OAuth URL: the consumer owns the redirect and handles click.

TSX
Continue with Celestia

Fallback and states

Without an icon the tile shows the first letter of the label. loading is the external in-flight state — the redirect was started and the page is waiting for the navigation to land — and disabled is an extra guard; either one disables the tile.

TSX
Workspace
Passkey
Recovery code

Interaction

click fires on a press or on Enter / Space. The example switches the tile to its in-flight state; a real host starts the redirect in the same handler.

TSX
Continue with Celestia

API

Vue

Props

NameTypeDefaultRequired
labelString—✓
iconnullundefined—
disabledBooleanfalse—
loadingBooleanfalse—

Emits

EventPayload
click—

Accessibility

  • The tile is a <button type="button"> whose accessible name is label; the icon is decoration and should carry aria-hidden.
  • The caption under the tile is a separate text node, not part of the button, so the name is not announced twice.
  • While loading or disabled the native disabled attribute is set.

Related components