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 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 .
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { HkAuthSsoButton } from " @celestia-island/hikari" ;
const mark = (
< svg viewBox = " 0 0 24 24" width = " 28" height = " 28" aria - hidden = " true" >
< circle cx = " 12" cy = " 12" r = " 10" fill = " #4f46e5" / >
< path
d = " M8 12.5l2.5 2.5L16 9.5"
fill = " none"
stroke = " #ffffff"
stroke - width = " 2"
stroke - linecap = " round"
stroke - linejoin = " round"
/ >
< / svg>
);
export default ( ) => <HkAuthSsoButton label="Continue with Celestia" icon={mark} / > ;import { HkAuthSsoButton } from "@celestia-island/hikari";
const mark = (
<svg viewBox="0 0 24 24" width="28" height="28" aria-hidden="true">
<circle cx="12" cy="12" r="10" fill="#4f46e5" />
<path
d="M8 12.5l2.5 2.5L16 9.5"
fill="none"
stroke="#ffffff"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
/>
</svg>
);
export default () => <HkAuthSsoButton label="Continue with Celestia" icon={mark} />; 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.
W Workspace
P Passkey
R Recovery code
import { HkAuthSsoButton } from " @celestia-island/hikari" ;
import type { CSSProperties } from " vue" ;
const row : CSSProperties = { display : " flex" , gap : " 24px" , alignItems : " flex-start" } ;
export default ( ) => (
< div style = { row } >
< HkAuthSsoButton label = " Workspace" / >
< HkAuthSsoButton label = " Passkey" loading / >
< HkAuthSsoButton label = " Recovery code" disabled / >
< / div>
);import { HkAuthSsoButton } from "@celestia-island/hikari";
import type { CSSProperties } from "vue";
const row: CSSProperties = { display: "flex", gap: "24px", alignItems: "flex-start" };
export default () => (
<div style={row}>
<HkAuthSsoButton label="Workspace" />
<HkAuthSsoButton label="Passkey" loading />
<HkAuthSsoButton label="Recovery code" disabled />
</div>
); 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.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { ref } from " vue" ;
import { HkAuthSsoButton } from " @celestia-island/hikari" ;
const mark = (
< svg viewBox = " 0 0 24 24" width = " 28" height = " 28" aria - hidden = " true" >
< circle cx = " 12" cy = " 12" r = " 10" fill = " #4f46e5" / >
< path
d = " M8 12.5l2.5 2.5L16 9.5"
fill = " none"
stroke = " #ffffff"
stroke - width = " 2"
stroke - linecap = " round"
stroke - linejoin = " round"
/ >
< / svg>
);
export default ( ) => {
const leaving = ref( false) ;
return (
<HkAuthSsoButton
label="Continue with Celestia"
icon={mark}
loading={leaving. value}
onClick={( ) => {
leaving. value = true;
}}
/>
) ;
};import { ref } from "vue";
import { HkAuthSsoButton } from "@celestia-island/hikari";
const mark = (
<svg viewBox="0 0 24 24" width="28" height="28" aria-hidden="true">
<circle cx="12" cy="12" r="10" fill="#4f46e5" />
<path
d="M8 12.5l2.5 2.5L16 9.5"
fill="none"
stroke="#ffffff"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
/>
</svg>
);
export default () => {
const leaving = ref(false);
return (
<HkAuthSsoButton
label="Continue with Celestia"
icon={mark}
loading={leaving.value}
onClick={() => {
leaving.value = true;
}}
/>
);
};
API Vue Props
Emits
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