@boxyhq/svelte-ui
Version:
Svelte UI components from BoxyHQ
39 lines (38 loc) • 1.31 kB
TypeScript
import { SvelteComponentTyped } from "svelte";
type ItemRowProps = {
inputType: "text" | "url" | "number" | "password";
item: string;
index: number;
handleItemUpdate: (newItem: string, index: number) => void;
handleItemDelete: (index: number) => void;
handleBlur: (index: number) => void;
isDuplicateItem?: boolean;
disableDelete?: boolean;
disabled?: boolean;
classNames: {
input: string;
};
};
declare const __propDef: {
props: {
inputType: ItemRowProps["inputType"];
classNames: ItemRowProps["classNames"];
item: ItemRowProps["item"];
handleItemUpdate: ItemRowProps["handleItemUpdate"];
index: ItemRowProps["index"];
handleBlur: ItemRowProps["handleBlur"];
disabled?: ItemRowProps["disabled"];
handleItemDelete: ItemRowProps["handleItemDelete"];
disableDelete?: ItemRowProps["disableDelete"];
};
events: {
[evt: string]: CustomEvent<any>;
};
slots: {};
};
type ItemRowProps_ = typeof __propDef.props;
export { ItemRowProps_ as ItemRowProps };
export type ItemRowEvents = typeof __propDef.events;
export type ItemRowSlots = typeof __propDef.slots;
export default class ItemRow extends SvelteComponentTyped<ItemRowProps_, ItemRowEvents, ItemRowSlots> {
}