Media slot

Playground

Properties

Size
Shape
State

Usage

Use empty, uploading, error and filled to show file states. Your app handles file selection and uploading. In Playground, you can select, preview, replace and remove an image. The file stays in your browser; it is not uploaded or saved.

'use client';
import { MediaSlot } from '@mbsw/ui';

export default function Example() {
  return <MediaSlot state="empty" aria-label={"Choose an image file"} />;
}

The Playground Code tab includes the full example with your current settings. See Installation for the CSS imports.

Composition