20 lines
704 B
TypeScript
20 lines
704 B
TypeScript
import {
|
|
type InputOTPProps,
|
|
type PaginationProps,
|
|
type HeaderProps,
|
|
} from "@heroui-vue/components";
|
|
const input: InputOTPProps = {
|
|
maxLength: 4,
|
|
modelValue: "1234",
|
|
variant: "secondary",
|
|
};
|
|
const pager: PaginationProps = { size: "sm" };
|
|
const heading: HeaderProps = { as: "header" };
|
|
// @ts-expect-error public OTP values are strings
|
|
const wrongModel: InputOTPProps = { maxLength: 4, modelValue: 1234 };
|
|
// @ts-expect-error unsupported OTP variant
|
|
const wrongVariant: InputOTPProps = { maxLength: 4, variant: "ghost" };
|
|
// @ts-expect-error Pagination has a fixed size set
|
|
const wrongSize: PaginationProps = { size: "xl" };
|
|
void [input, pager, heading, wrongModel, wrongVariant, wrongSize];
|