@stacksjs/stx
Version:
A performant UI Framework. Powered by Bun.
23 lines • 527 B
TypeScript
import type { MediaUploadProps, } from '../types';
/**
* Render a file upload component
*
* @example
* ```typescript
* const html = renderMediaUpload({
* endpoint: '/api/upload',
* accept: 'image/*',
* maxSize: 10 * 1024 * 1024, // 10MB
* preview: true,
* dropzone: true,
* })
* ```
*/
/*',
* maxSize: 10 * 1024 * 1024, // 10MB
* preview: true,
* dropzone: true,
* })
* ```
*/
export declare function renderMediaUpload(props: MediaUploadProps): { html: string; script: string; css: string };