primevue-mirror/api-generator/components/inputotp.js

81 lines
1.9 KiB
JavaScript
Raw Permalink Normal View History

2024-02-22 08:52:39 +00:00
const InputOtpProps = [
2024-02-21 18:38:16 +00:00
{
name: 'modelValue',
type: 'boolean',
default: 'null',
2024-02-22 08:52:39 +00:00
description: 'Specifies whether a inputOtp should be checked or not.'
2024-02-21 18:38:16 +00:00
},
{
name: 'trueValue',
type: 'any',
default: 'null',
description: 'Value in checked state.'
},
{
name: 'falseValue',
type: 'any',
default: 'null',
description: 'Value in unchecked state.'
},
{
name: 'inputId',
type: 'string',
default: 'null',
description: 'Identifier of the underlying input element.'
},
{
name: 'inputStyle',
type: 'object',
default: 'null',
description: 'Inline style of the input field.'
},
{
name: 'inputClass',
type: 'string | object',
default: 'null',
description: 'Style class of the input field.'
},
{
name: 'inputProps',
type: 'object',
default: 'null',
description: 'Used to pass all properties of the HTMLInputElement to the focusable input element inside the component.'
},
{
name: 'pt',
type: 'any',
default: 'null',
description: 'Used to pass attributes to DOM elements inside the component.'
},
{
name: 'unstyled',
type: 'boolean',
default: 'false',
description: 'When enabled, it removes component related styles in the core.'
}
];
2024-02-22 08:52:39 +00:00
const InputOtpEvents = [
2024-02-21 18:38:16 +00:00
{
name: 'click',
description: 'Callback to invoke on click.'
},
{
name: 'change',
description: 'Callback to invoke on value change.'
},
{
name: 'input',
description: 'Callback to invoke on value change.'
}
];
module.exports = {
2024-02-22 08:52:39 +00:00
inputotp: {
name: 'InputOtp',
description: 'InputOtp is used to enter one time passwords.',
props: InputOtpProps,
events: InputOtpEvents
2024-02-21 18:38:16 +00:00
}
};