Files
WRNexusJS/packages/captcha/components/CaptchaField.wrn
T
Clintchiz 586a6db8ff
Quality / quality (ubuntu-latest) (push) Failing after 21s
Quality / quality (windows-latest) (push) Canceled after 0s
release: WRNexusJS 0.8.0
2026-08-02 23:18:51 +05:30

19 lines
644 B
Plaintext

component CaptchaField {
props {
title: string = "Security verification"
description: string = "Complete the challenge before submitting."
provider: string = "self-hosted"
type: string = "alphanumeric"
action: string = "form-submit"
color: string = "primary"
size: string = "md"
captchaSize: string = "normal"
class: string = ""
}
view {
<Card {...attrs} title='{title}' description='{description}' color='{color}' size='{size}' class='{class}'>
<Captcha provider='{provider}' type='{type}' action='{action}' color='{color}' size='{captchaSize}' compact='{size == "sm"}' />
</Card>
}
}