handlers?.onPropChange('visible', true)}
>
handleChange(event, handlers)}
>
handlers?.onPropChange('visible', false)}
>
handlers?.onPropChange('visible', false)}
>
`;
}
export const nuiDialogPlayground: PlaygroundDefinition = {
tag: 'nui-dialog',
label: 'Dialog',
description:
'Modal overlay with header, content, and footer slots; controlled by visible.',
defaults: NUI_DIALOG_DEFAULTS,
controls: CONTROLS,
renderPreview,
formatUsage: (props) => {
const { content: _content, ...usageProps } = props;
return formatUsageFromDefaults(
'nui-dialog',
usageProps,
NUI_DIALOG_DEFAULTS,
ATTRIBUTE_NAMES,
);
},
};