@dvcol/neo-svelte
Version:
Neomorphic ui library for svelte 5
21 lines (20 loc) • 666 B
TypeScript
import type { Snippet } from 'svelte';
import type { NeoButtonProps } from '../buttons/neo-button.model.js';
import type { NeoInputProps } from './common/neo-input.model.js';
import type { NeoPinState } from './neo-pin.model.js';
export type NeoPasswordProps<T extends boolean = false> = {
/**
* Show a pin input instead of a text input.
*/
pin?: T;
/**
* Custom icon for the picker.
*/
icon?: Snippet<[{
show: boolean;
}]>;
/**
* Button properties to pass to the show/hide password button.
*/
buttonProps?: NeoButtonProps;
} & NeoInputProps & (T extends true ? NeoPinState : Record<string, never>);