preskok/ui

Preskok Auth Button

A branded authentication button component for Preskok integration.

Installation

pnpm dlx @preskok-org/ui@latest add preskok-auth-button

Usage

import { PreskokAuthButton } from "@/registry/preskok/ui/preskok-ui/preskok-auth-button"
 
export function PreskokAuthButtonDemo() {
  return (
    <PreskokAuthButton
      onPress={() => {
        // Handle Preskok authentication
      }}
    />
  )
}

Props

All standard Button props are supported, plus:

PropTypeDefaultDescription
labelstring"Continue with Preskok"Custom label for accessibility
intentstring"outline"Button intent (primary, secondary, etc.)

Examples

Different Intents

<PreskokAuthButton intent="outline" />
<PreskokAuthButton intent="primary" />
<PreskokAuthButton intent="secondary" />

Custom Label

<PreskokAuthButton label="Sign in with Preskok" />

With Handler

<PreskokAuthButton
  onPress={() => {
    window.location.href = "/auth/preskok"
  }}
/>