ButtonField
ButtonField standardizes action buttons across forms and modals with fullWidth support and loading indicators.
Props & Configuration
4 propsComplete property specifications, parameter types, and default fallbacks.
| Property | Type | Default | Description |
|---|---|---|---|
| type | "primary" | "default" | "dashed" | "link" | "text" | "default" | Ant Button variant type. |
| loading | boolean | false | Shows loading spinner. |
| fullWidth | boolean | false | Expands button width to 100% of container. |
| danger | boolean | false | Renders destructive red styling. |
Interactive Examples & Live Previews
1 DemosEvery example includes its own live, interactive preview element alongside the corresponding copyable TypeScript snippet.
Button Variants
Primary, default, and destructive danger buttons.
1import React from "react";2import { ButtonField } from "antd-dynamic-ui";34export default function ButtonsShowcase() {5 return (6 <div className="flex gap-3">7 <ButtonField type="primary">Primary</ButtonField>8 <ButtonField type="default">Default</ButtonField>9 <ButtonField type="primary" danger>Delete</ButtonField>10 </div>11 );12}
Frequently Asked Questions & Quick Solutions
Architectural patterns, React 19 compatibility, and integration tips for ButtonField.
How does ButtonField integrate with Ant Design 5.x and Next.js 15?▼
ButtonField 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 ButtonField?▼
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.