UNPKG

@zag-js/password-input

Version:

Core logic for the password-input widget implemented as a state machine

10 lines (9 loc) 271 B
// src/password-input.dom.ts var getRootId = (ctx) => ctx.ids?.root ?? `p-input-${ctx.id}`; var getInputId = (ctx) => ctx.ids?.input ?? `p-input-${ctx.id}-input`; var getInputEl = (ctx) => ctx.getById(getInputId(ctx)); export { getInputEl, getInputId, getRootId };