From 5307fc34c0cae43849098f6977fa76d95c022254 Mon Sep 17 00:00:00 2001 From: nathansmedley <67465787+nathansmedley@users.noreply.github.com> Date: Thu, 25 Apr 2024 17:13:10 +0100 Subject: [PATCH] feat: Added appearance to options (#308) --- src/runtime/types.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/runtime/types.ts b/src/runtime/types.ts index 8db0df55..e2e689e9 100644 --- a/src/runtime/types.ts +++ b/src/runtime/types.ts @@ -40,6 +40,12 @@ export interface TurnstileRenderOptions { * A JavaScript callback that is invoked when there is a network error. */ 'error-callback'?: () => void + /** + * Appearance controls when the widget is visible. It can be always (default), execute, or interaction-only. + * + * @default {`always`} + */ + appearance?: 'always' | 'execute' | 'interaction-only'; } export type TurnstileValidationErrorCode =