Photonix

SlotPlaceholder

A visual placeholder component often used in empty states or variant selections.

Preview

Drag & DropUpload your files here.
Usage
import { SlotPlaceholder } from '@photonix/ultimate';

<SlotPlaceholder
  title="Drag & Drop"
  description="Upload your files here."
/>

Component API

SlotPlaceholder

Prop
Type
Default
Description
title
string
'SlotPlaceholder'
Title text
description
string
"Replace this subcomponent in the variant properties with one you've built locally."
Description text
icon
React.ReactNode
-
Custom icon
minHeight
string | number
-
Minimum height

Variants

Basic

Default placeholder with title and description.

No ItemsAdd an item to get started.
Basic
<SlotPlaceholder title="No Items" description="Add an item to get started." />

Custom Icon

Placeholder with a custom icon.

SuccessFile uploaded successfully.
Custom Icon
<SlotPlaceholder
  title="Success"
  description="File uploaded successfully."
  icon={<Box></Box>}
/>

On this page

Preview
Component API
Variants
Basic
Custom Icon
Photonix UI - React Components, Templates & Figma Design System