Dialog

A modal dialog component using the native HTML dialog element for accessibility and performance.

Welcome to StarUI

This is a simple dialog demonstrating the basic structure and functionality.

Dialog content goes here. You can include any content you need.

Installation

CLI

Install the component using the StarUI CLI:

star add dialog

Examples

Confirmation Dialog

Destructive action confirmation with warnings

Are you absolutely sure?

This action cannot be undone. This will permanently delete your account and remove your data from our servers.

Warning: This action is irreversible

  • All your projects will be deleted
  • Your subscription will be cancelled
  • You will lose access to all shared resources

Form Dialog

Complex form with multiple input types in a dialog

Invite Team Member

Add a new member to your team and assign their role

Personal Information

This will be displayed in the team directory

Invitation will be sent to this email

Access & Permissions

Viewer - Can view projects and files
Editor - Can edit projects and collaborate
Admin - Full administrative access

Choose the appropriate permission level for this user

Viewer Access

Can view and comment on projects

Notification Settings

The team member will receive an email invitation to join

Include helpful resources for new team members

Scrollable Content

Dialog with scrollable content and conditional actions

Terms of Service

Please review our terms and conditions

1. Acceptance of Terms

By accessing and using this service, you accept and agree to be bound by the terms and provision of this agreement.

2. Use License

Permission is granted to temporarily download one copy of the materials for personal, non-commercial transitory viewing only.

3. Disclaimer

The materials on this service are provided on an 'as is' basis. We make no warranties, expressed or implied, and hereby disclaim and negate all other warranties including, without limitation, implied warranties or conditions of merchantability, fitness for a particular purpose, or non-infringement of intellectual property or other violation of rights.

4. Limitations

In no event shall our company or its suppliers be liable for any damages (including, without limitation, damages for loss of data or profit, or due to business interruption) arising out of the use or inability to use the materials on our service.

5. Privacy Policy

Your privacy is important to us. Our privacy policy explains how we collect, use, and protect your data.

6. Account Termination

We reserve the right to terminate accounts that violate our terms of service.

Loading/Async Dialog

Dialog with loading states, progress tracking, and async operations

Upload Document

Upload and process your document

Required - give your document a descriptive name

Choose file to upload:

Multi-Step Wizard

Complex wizard flow with step indicators and validation

Project Setup

1

Project Type

2

Configuration

3

Review

Settings Dialog

Tabbed interface for managing different categories of settings

Settings

Manage your account and application preferences

UTC
Pacific Standard Time
Eastern Standard Time
Central European Time

Dialog Sizes

Different dialog sizes for various content needs

Small Dialog

This is a small dialog (max-width: sm)

Compact content area.

Medium Dialog

This is a medium dialog (max-width: lg)

Standard content area.

Large Dialog

This is a large dialog (max-width: 2xl)

Spacious content area for complex forms or content.

API Reference

Component Description
Dialog The main dialog container with modal behavior and backdrop
DialogTrigger Button that opens the dialog when clicked
DialogContent Container for all dialog content with proper styling and positioning
DialogHeader Header section containing title and description
DialogTitle Main heading for the dialog
DialogDescription Supporting text that describes the dialog purpose
DialogFooter Footer section for action buttons and controls
DialogClose Button that closes the dialog and optionally returns a value