skip section navigation

DialogHolder

DialogHolder is a deprecated compatibility export that renders nothing. remove it from your root layout. createDialog mounts its own SmallDialogView or PickerDialogView when you open one.

usage

svelte
<script>
	import { createDialog } from '@ciabi/loafkit-ui';
</script>

<button type="button" onclick={() => createDialog({
	id: 'holder-free-message', type: 'small', title: 'No holder needed',
	bodyText: 'The helper mounted this dialog.', buttons: [{ label: 'Close', main: true }]
})}>Open a message</button>

for a dialog that belongs to a specific form, render a direct view and bind its open state. the dialog guide explains when each ownership model fits.