Skip to content

Commit

Permalink
feat: Added appearance to options (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathansmedley authored Apr 25, 2024
1 parent eba204a commit 5307fc3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/runtime/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 5307fc3

Please sign in to comment.