spacing
prop. The default is set to medium
.
none
prop removes the spacing inside the modal container.small
, medium
, and large
props add the respective spacing around the modal content.spacing
prop only applies to viewports equal to or above the small breakpoint (~600px).{% include '@bolt-components-modal/modal.twig' with {
content: 'This is a modal set to small spacing.',
spacing: 'small',
attributes: {
class: 'js-bolt-modal--spacing-small',
},
} only %}