Reference

Modal

Below are the respective implementations for all modal examples, categorized by size, placement, and transitions.

Logo

Sizes

Modals in AueraUI support various sizes to fit different use cases.

Auto

Automatically adjusts its width based on content.

overlays/modal/size-auto.tsx

Small

A small modal ideal for simple alerts or confirmation dialogs.

overlays/modal/size-sm.tsx

Medium

A standard-size modal suitable for most general purposes.

overlays/modal/size-md.tsx

Large

A larger modal for displaying more content, such as forms or data.

overlays/modal/size-lg.tsx

Extra Large

An extra-large modal for complex interfaces or extensive content.

overlays/modal/size-xl.tsx

Full

Covers 83% of the screen width, offering an immersive experience.

overlays/modal/size-full.tsx

Full Screen

Expands to cover the entire screen for maximum focus.

overlays/modal/size-full-screen.tsx

Placement

Modals can be positioned at different locations on the screen.

Top

Appears at the top of the screen, useful for notifications.

overlays/modal/placement-top.tsx

Center

Centers the modal on the screen for standard interactions.

overlays/modal/placement-center.tsx

Bottom

Appears at the bottom of the screen, often used for mobile-friendly modals.

overlays/modal/placement-bottom.tsx

Transitions

Modals support different transition effects for smooth animations.

WalkIn

A smooth 'walk-in' effect where the modal gradually appears.

overlays/modal/transition-walkIn.tsx

DropIn

The modal drops in from above, adding a dynamic effect.

overlays/modal/transition-dropIn.tsx

SlideIn

Slides in from the side, great for sidebar modals.

overlays/modal/transition-slideIn.tsx

Radius

The radius property defines the border-radius of modals, allowing for smooth and rounded corners. Different sizes provide varying levels of curvature to enhance the visual appeal of modals.

Medium

The medium radius applies a subtle rounding to modal corners, providing a slight softness without excessive curvature. Ideal for maintaining a balanced and modern look.

overlays/modal/radius-md.tsx

Large

The large radius increases the curvature of modal corners, creating a more pronounced rounded effect. This is useful for a softer, more approachable UI design.

overlays/modal/radius-lg.tsx

Extra Large

Extra-large radius gives modals a highly rounded appearance, making them feel more fluid and organic. Suitable for designs emphasizing smoothness and elegance.

overlays/modal/radius-xl.tsx

2x Large

The 2x large radius applies an even more pronounced curvature, giving modals a pill-like appearance. This style works well in designs that favor a softer, friendly aesthetic.

overlays/modal/radius-2xl.tsx

3x Large

The 3x large radius provides the most extreme rounding, making modals appear almost fully rounded at the edges. This effect is ideal for highly stylized, modern, and playful UI elements.

overlays/modal/radius-3xl.tsx

Usage

This section covers the structure of modal overlays and general containers.

Container

The Container serves as the main wrapper for all overlays in the application, including modals and drawers This ensures that they are properly managed within the broader UI structure.

overlays/containertsx