Skip to content

API Reference

Catalog metadata for this block. Install copies the source into your project.

npx cronus-ui add otp
Skip Two-Factor Code fields table
FieldTypeDefaultDescription
slug*
string"otp"Registry item id. Passed to cronus-ui add.
name*
string"Two-Factor Code"Display name shown in the gallery.
description*
string"A two-factor authentication card with a six-digit one-time code entry."Short summary of what the block covers.
variants
{ id: string; name: string; description: string }[]["classic", "split"]Alternate layouts. Install a look with npx cronus-ui add <slug>--<id>. Omitted when the block has a single default.

Variants

Every published look for this block.

Skip Two-Factor Code variants table
IdNameDescription
classicClassic cardCentered 6-digit code card with a verify action and a resend link.
splitSplit panelBrand gradient panel with a customer testimonial beside the 6-digit code form.