ConfigurationBuilderModal
A full-screen modal that provides a header with title, subtitle, and a close button for building configuration definitions. The configurationGroup prop declares which group type is being configured. The inner content area is currently a placeholder; extend it with the appropriate builder UI for each group type.
Props
| Prop | Type | Required | Default | Description |
|------|------|----------|---------|-------------|
| isOpen | boolean | Yes | — | Controls whether the modal is visible. |
| onClose | () => void | Yes | — | Called when the modal is closed. |
| title | string | Yes | — | Title displayed in the modal header. |
| configurationGroup | 'fields' \| 'slots' \| 'filters' \| 'headerActions' \| 'listActions' \| 'dividerGroups' \| 'importCols' \| 'exportCols' | Yes | — | Declares which type of configuration is being edited. |
| subtitle | string | No | — | Subtitle displayed below the title in the header. |
| data | any[] \| null | No | — | Initial configuration data. |
| backdropStyle | React.CSSProperties | No | — | Inline styles for the modal backdrop. |
| windowStyle | React.CSSProperties | No | — | Inline styles merged into the modal window. |
| closeButtonStyle | React.CSSProperties | No | — | Styles for the close button. |
| closeIcon | string | No | — | Icon name for the close button. |
| closeIconPaths | any[] | No | — | Custom icon paths for the close button. |
| closeIconSize | number | No | — | Icon size for the close button. |
| zIndex | number | No | 99999 | CSS z-index of the modal overlay. |
| id | string | No | — | HTML id for the modal element. |
| fullScreen | boolean | No | — | When true, the modal occupies the full viewport. |
Usage
Basic
import React from 'react';
import ConfigurationBuilderModal from '@/components/modals/ConfigurationBuilderModal';
export default function Example() {
const [open, setOpen] = React.useState(false);
return (
<>
<button onClick={() => setOpen(true)}>Configure Fields</button>
<ConfigurationBuilderModal
isOpen={open}
onClose={() => setOpen(false)}
title="Fields Configuration"
subtitle="Define the fields for this view"
configurationGroup="fields"
/>
</>
);
}