LoadingSpinner
LoadingSpinner renders Ant Design's Spin with normalized sizing and an optional fullScreen backdrop overlay.
Props & Configuration
3 propsComplete property specifications, parameter types, and default fallbacks.
| Property | Type | Default | Description |
|---|---|---|---|
| fullScreen | boolean | false | Renders full-viewport backdrop overlay. |
| size | "small" | "medium" | "large" | "medium" | Spinner dimensions. |
| tip | string | — | Descriptive loading message text. |
Interactive Examples & Live Previews
1 DemosEvery example includes its own live, interactive preview element alongside the corresponding copyable TypeScript snippet.
Inline Spinner
Centered spinner for cards and sections.
1import React from "react";2import { LoadingSpinner } from "antd-dynamic-ui";34export default function InlineSpinner() {5 return (6 <div className="flex flex-col items-center justify-center p-8 space-y-3">7 <LoadingSpinner size="large" />8 <span className="text-xs text-zinc-500">Fetching live analytics...</span>9 </div>10 );11}
Frequently Asked Questions & Quick Solutions
Architectural patterns, React 19 compatibility, and integration tips for LoadingSpinner.
How does LoadingSpinner integrate with Ant Design 5.x and Next.js 15?▼
LoadingSpinner is designed as an enhanced, declarative wrapper for Ant Design. It fully supports Next.js 15 App Router when using @ant-design/nextjs-registry, eliminating SSR hydration mismatches and guaranteeing 0ms layout thrashing.
Can I customize validation, themes, and props for LoadingSpinner?▼
Yes. Every prop is fully typed in TypeScript 5 with comprehensive Intellisense. You can pass custom styling via className or style props, configure global Ant Design themes via ConfigProvider, and extend validation logic seamlessly.