vueless
Version:
Vue Styleless UI Component Library, powered by Tailwind CSS.
47 lines (37 loc) • 642 B
text/typescript
import defaultConfig from "./config.ts";
import type { ComponentConfig } from "../types.ts";
export type Config = typeof defaultConfig;
export interface Props {
/**
* File url.
*/
url?: string;
/**
* Image url.
*/
imageUrl?: string;
/**
* File label.
*/
label?: string;
/**
* File size.
*/
size?: "sm" | "md" | "lg";
/**
* Unique file id.
*/
id?: string;
/**
* Show remove button.
*/
removable?: boolean;
/**
* Component config object.
*/
config?: ComponentConfig<Config>;
/**
* Data-test attribute for automated testing.
*/
dataTest?: string | null;
}