Files
WRNexusJS/packages/captcha/components/CaptchaField.wrn
Clintchiz 4cebacadfe
Quality / quality (ubuntu-latest) (push) Failing after 12m9s
Quality / quality (windows-latest) (push) Canceled after 0s
release: WRNexusJS 0.8.3
2026-08-03 19:47:30 +05:30

22 lines
716 B
Plaintext

import Captcha from "./Captcha.wrn"
import { Card } from "@wrnexus/ui"
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>
}
}