Modal
Default modal - close btn top/right
-
-
{% set modal_props = { id: "defaultModal", title: "Modal title" } %} {% include "@Components/button/button.twig" with { props: { attributes: ['data-target="' ~ modal_props.id ~ '"', 'data-toggle="modal"'], title: "Open modal", tag: "button" } } %} {% embed "@Components/modal/modal.twig" with { props: modal_props } %} {% block content %} <h2>Modal content</h2> <div>Thought shower. Unlock meaningful moments of relaxation roll back strategy we need to think big start small and scale fast to energize our clients or bench mark copy and paste from stack overflow and my capacity is full action item. On this journey powerPointless hard stop mumbo jumbo take five, punch the tree, and come back in here with a clear head. How much bandwidth do you have a tentative event rundown is attached for your reference, including other happenings on the day you are most welcome to join us beforehand for a light lunch we would also like to invite you to other activities on the day, including the interim and closing panel discussions on the intersection of businesses and social innovation, and on building a stronger social innovation eco-system respectively the last person we talked to said this would be ready and let's unpack that later and strategic fit, for increase the resolution, scale it up we need a larger print circle back. Staff engagement scope creep.</div> {% endblock %} {% endembed %} -
<button class="btn --conversion" data-target="defaultModal" data-toggle="modal"> <span class="btn__title ">Open modal</span> </button> <div data-modal tabindex="-1" role="dialog" aria-modal="true" aria-labelledby="Modal title" aria-hidden="true" class="base-modal" id="defaultModal"> <div class="base-modal__close-out" data-modal-close="defaultModal"> <div class="base-modal__close-out-image"> <span class="icon --white"> <img src="images/svg/cross.svg" alt="Zavřít" loading="lazy"> </span> </div> <div class="base-modal__close-out-text"> Zavřít </div> </div> <div class="base-modal__box "> <div class="base-modal__content"> <h2>Modal content</h2> <div>Thought shower. Unlock meaningful moments of relaxation roll back strategy we need to think big start small and scale fast to energize our clients or bench mark copy and paste from stack overflow and my capacity is full action item. On this journey powerPointless hard stop mumbo jumbo take five, punch the tree, and come back in here with a clear head. How much bandwidth do you have a tentative event rundown is attached for your reference, including other happenings on the day you are most welcome to join us beforehand for a light lunch we would also like to invite you to other activities on the day, including the interim and closing panel discussions on the intersection of businesses and social innovation, and on building a stronger social innovation eco-system respectively the last person we talked to said this would be ready and let's unpack that later and strategic fit, for increase the resolution, scale it up we need a larger print circle back. Staff engagement scope creep.</div> </div> </div> </div>
Default modal - close btn in box
-
-
{% set modal_props = { id: "defaultModalInnerClose", title: "Modal title", size: "md", close_inner: true, button: { title: "Open modal", tag: "button" } } %} {% embed "@Components/modal/modal.twig" with { props: modal_props } %} {% block content %} <h2>Modal content</h2> <div>Thought shower. Unlock meaningful moments of relaxation roll back strategy we need to think big start small and scale fast to energize our clients or bench mark copy and paste from stack overflow and my capacity is full action item. On this journey powerPointless hard stop mumbo jumbo take five, punch the tree, and come back in here with a clear head. How much bandwidth do you have a tentative event rundown is attached for your reference, including other happenings on the day you are most welcome to join us beforehand for a light lunch we would also like to invite you to other activities on the day, including the interim and closing panel discussions on the intersection of businesses and social innovation, and on building a stronger social innovation eco-system respectively the last person we talked to said this would be ready and let's unpack that later and strategic fit, for increase the resolution, scale it up we need a larger print circle back. Staff engagement scope creep.</div> {% endblock %} {% endembed %} -
<div data-modal tabindex="-1" role="dialog" aria-modal="true" aria-labelledby="Modal title" aria-hidden="true" class="base-modal" id="defaultModalInnerClose"> <div class="base-modal__box --md"> <div class="base-modal__close-in" data-modal-close="defaultModalInnerClose"> <span class="icon"> <img src="images/svg/cross.svg" alt="Zavřít" loading="lazy"> </span> </div> <div class="base-modal__content"> <h2>Modal content</h2> <div>Thought shower. Unlock meaningful moments of relaxation roll back strategy we need to think big start small and scale fast to energize our clients or bench mark copy and paste from stack overflow and my capacity is full action item. On this journey powerPointless hard stop mumbo jumbo take five, punch the tree, and come back in here with a clear head. How much bandwidth do you have a tentative event rundown is attached for your reference, including other happenings on the day you are most welcome to join us beforehand for a light lunch we would also like to invite you to other activities on the day, including the interim and closing panel discussions on the intersection of businesses and social innovation, and on building a stronger social innovation eco-system respectively the last person we talked to said this would be ready and let's unpack that later and strategic fit, for increase the resolution, scale it up we need a larger print circle back. Staff engagement scope creep.</div> </div> </div> </div>
Modal SM
-
-
{% set modal_props = { id: "defaultModalSM", title: "Modal title", size: "sm", button: { title: "Open modal", tag: "button" } } %} {% embed "@Components/modal/modal.twig" with { props: modal_props } %} {% block content %} <h2>Modal content</h2> <div>Thought shower. Unlock meaningful moments of relaxation roll back strategy we need to think big start small and scale fast to energize our clients or bench mark copy and paste from stack overflow and my capacity is full action item. On this journey powerPointless hard stop mumbo jumbo take five, punch the tree, and come back in here with a clear head. How much bandwidth do you have a tentative event rundown is attached for your reference, including other happenings on the day you are most welcome to join us beforehand for a light lunch we would also like to invite you to other activities on the day, including the interim and closing panel discussions on the intersection of businesses and social innovation, and on building a stronger social innovation eco-system respectively the last person we talked to said this would be ready and let's unpack that later and strategic fit, for increase the resolution, scale it up we need a larger print circle back. Staff engagement scope creep.</div> {% endblock %} {% endembed %} -
<div data-modal tabindex="-1" role="dialog" aria-modal="true" aria-labelledby="Modal title" aria-hidden="true" class="base-modal" id="defaultModalSM"> <div class="base-modal__close-out" data-modal-close="defaultModalSM"> <div class="base-modal__close-out-image"> <span class="icon --white"> <img src="images/svg/cross.svg" alt="Zavřít" loading="lazy"> </span> </div> <div class="base-modal__close-out-text"> Zavřít </div> </div> <div class="base-modal__box --sm"> <div class="base-modal__content"> <h2>Modal content</h2> <div>Thought shower. Unlock meaningful moments of relaxation roll back strategy we need to think big start small and scale fast to energize our clients or bench mark copy and paste from stack overflow and my capacity is full action item. On this journey powerPointless hard stop mumbo jumbo take five, punch the tree, and come back in here with a clear head. How much bandwidth do you have a tentative event rundown is attached for your reference, including other happenings on the day you are most welcome to join us beforehand for a light lunch we would also like to invite you to other activities on the day, including the interim and closing panel discussions on the intersection of businesses and social innovation, and on building a stronger social innovation eco-system respectively the last person we talked to said this would be ready and let's unpack that later and strategic fit, for increase the resolution, scale it up we need a larger print circle back. Staff engagement scope creep.</div> </div> </div> </div>
Modal LG
-
-
{% set modal_props = { id: "defaultModalLg", title: "Modal title", size: "lg", button: { title: "Open modal", tag: "button" } } %} {% embed "@Components/modal/modal.twig" with { props: modal_props } %} {% block content %} <h2>Modal content</h2> <div>Thought shower. Unlock meaningful moments of relaxation roll back strategy we need to think big start small and scale fast to energize our clients or bench mark copy and paste from stack overflow and my capacity is full action item. On this journey powerPointless hard stop mumbo jumbo take five, punch the tree, and come back in here with a clear head. How much bandwidth do you have a tentative event rundown is attached for your reference, including other happenings on the day you are most welcome to join us beforehand for a light lunch we would also like to invite you to other activities on the day, including the interim and closing panel discussions on the intersection of businesses and social innovation, and on building a stronger social innovation eco-system respectively the last person we talked to said this would be ready and let's unpack that later and strategic fit, for increase the resolution, scale it up we need a larger print circle back. Staff engagement scope creep.</div> {% endblock %} {% endembed %} -
<div data-modal tabindex="-1" role="dialog" aria-modal="true" aria-labelledby="Modal title" aria-hidden="true" class="base-modal" id="defaultModalLg"> <div class="base-modal__close-out" data-modal-close="defaultModalLg"> <div class="base-modal__close-out-image"> <span class="icon --white"> <img src="images/svg/cross.svg" alt="Zavřít" loading="lazy"> </span> </div> <div class="base-modal__close-out-text"> Zavřít </div> </div> <div class="base-modal__box --lg"> <div class="base-modal__content"> <h2>Modal content</h2> <div>Thought shower. Unlock meaningful moments of relaxation roll back strategy we need to think big start small and scale fast to energize our clients or bench mark copy and paste from stack overflow and my capacity is full action item. On this journey powerPointless hard stop mumbo jumbo take five, punch the tree, and come back in here with a clear head. How much bandwidth do you have a tentative event rundown is attached for your reference, including other happenings on the day you are most welcome to join us beforehand for a light lunch we would also like to invite you to other activities on the day, including the interim and closing panel discussions on the intersection of businesses and social innovation, and on building a stronger social innovation eco-system respectively the last person we talked to said this would be ready and let's unpack that later and strategic fit, for increase the resolution, scale it up we need a larger print circle back. Staff engagement scope creep.</div> </div> </div> </div>
Default - link "a"
-
-
{% set modal_props = { id: "defaultModalA", title: "Modal title", button: { title: "Open modal", tag: "a" } } %} {% embed "@Components/modal/modal.twig" with { props: modal_props } %} {% block content %} <h2>Modal content</h2> <div>Thought shower. Unlock meaningful moments of relaxation roll back strategy we need to think big start small and scale fast to energize our clients or bench mark copy and paste from stack overflow and my capacity is full action item. On this journey powerPointless hard stop mumbo jumbo take five, punch the tree, and come back in here with a clear head. How much bandwidth do you have a tentative event rundown is attached for your reference, including other happenings on the day you are most welcome to join us beforehand for a light lunch we would also like to invite you to other activities on the day, including the interim and closing panel discussions on the intersection of businesses and social innovation, and on building a stronger social innovation eco-system respectively the last person we talked to said this would be ready and let's unpack that later and strategic fit, for increase the resolution, scale it up we need a larger print circle back. Staff engagement scope creep.</div> {% endblock %} {% endembed %} -
<div data-modal tabindex="-1" role="dialog" aria-modal="true" aria-labelledby="Modal title" aria-hidden="true" class="base-modal" id="defaultModalA"> <div class="base-modal__close-out" data-modal-close="defaultModalA"> <div class="base-modal__close-out-image"> <span class="icon --white"> <img src="images/svg/cross.svg" alt="Zavřít" loading="lazy"> </span> </div> <div class="base-modal__close-out-text"> Zavřít </div> </div> <div class="base-modal__box "> <div class="base-modal__content"> <h2>Modal content</h2> <div>Thought shower. Unlock meaningful moments of relaxation roll back strategy we need to think big start small and scale fast to energize our clients or bench mark copy and paste from stack overflow and my capacity is full action item. On this journey powerPointless hard stop mumbo jumbo take five, punch the tree, and come back in here with a clear head. How much bandwidth do you have a tentative event rundown is attached for your reference, including other happenings on the day you are most welcome to join us beforehand for a light lunch we would also like to invite you to other activities on the day, including the interim and closing panel discussions on the intersection of businesses and social innovation, and on building a stronger social innovation eco-system respectively the last person we talked to said this would be ready and let's unpack that later and strategic fit, for increase the resolution, scale it up we need a larger print circle back. Staff engagement scope creep.</div> </div> </div> </div>
Custom close btn text
-
-
{% set modal_props = { id: "defaultModalCloseText", title: "Modal title", size: "md", close_btn_text: "Vlastní text pro zavření modalu", button: { title: "Open modal", tag: "button" } } %} {% embed "@Components/modal/modal.twig" with { props: modal_props } %} {% block content %} <h2>Modal content</h2> <div>Thought shower. Unlock meaningful moments of relaxation roll back strategy we need to think big start small and scale fast to energize our clients or bench mark copy and paste from stack overflow and my capacity is full action item. On this journey powerPointless hard stop mumbo jumbo take five, punch the tree, and come back in here with a clear head. How much bandwidth do you have a tentative event rundown is attached for your reference, including other happenings on the day you are most welcome to join us beforehand for a light lunch we would also like to invite you to other activities on the day, including the interim and closing panel discussions on the intersection of businesses and social innovation, and on building a stronger social innovation eco-system respectively the last person we talked to said this would be ready and let's unpack that later and strategic fit, for increase the resolution, scale it up we need a larger print circle back. Staff engagement scope creep.</div> {% endblock %} {% endembed %} -
<div data-modal tabindex="-1" role="dialog" aria-modal="true" aria-labelledby="Modal title" aria-hidden="true" class="base-modal" id="defaultModalCloseText"> <div class="base-modal__close-out" data-modal-close="defaultModalCloseText"> <div class="base-modal__close-out-image"> <span class="icon --white"> <img src="images/svg/cross.svg" alt="Zavřít" loading="lazy"> </span> </div> <div class="base-modal__close-out-text"> Vlastní text pro zavření modalu </div> </div> <div class="base-modal__box --md"> <div class="base-modal__content"> <h2>Modal content</h2> <div>Thought shower. Unlock meaningful moments of relaxation roll back strategy we need to think big start small and scale fast to energize our clients or bench mark copy and paste from stack overflow and my capacity is full action item. On this journey powerPointless hard stop mumbo jumbo take five, punch the tree, and come back in here with a clear head. How much bandwidth do you have a tentative event rundown is attached for your reference, including other happenings on the day you are most welcome to join us beforehand for a light lunch we would also like to invite you to other activities on the day, including the interim and closing panel discussions on the intersection of businesses and social innovation, and on building a stronger social innovation eco-system respectively the last person we talked to said this would be ready and let's unpack that later and strategic fit, for increase the resolution, scale it up we need a larger print circle back. Staff engagement scope creep.</div> </div> </div> </div>
Structured – header, scrollable body, footer
-
-
{# Strukturovaný modal: hlavička s podtitulkem, rolovatelné tělo, patička se dvěma skupinami akcí #} {% set modal_props = { id: "structuredModal", size: "md", mobile: "sheet", footer: true, header: { title: "Nastavení hlídače", subtitle: "Určete jak často a kam chcete novinky posílat." } } %} {% include "@Components/button/button.twig" with { props: { attributes: ['data-target="' ~ modal_props.id ~ '"', 'data-toggle="modal"'], title: "Open structured modal", tag: "button" } } %} {% embed "@Components/modal/modal.twig" with { props: modal_props } %} {% block content %} {% include "@Components/forms/input-field/input-field.twig" with { props: { id: "structured-modal-name", name: "name", label: "Název hlídače", value: "Domy České Budějovice", icon: { src: "svg/user-section/pencil.svg", position: "right", insertAsSvg: true } } } %} {% for i in 1..8 %} <p class="mt-2">Dlouhý obsah: tělo modalu roluje samostatně, hlavička i patička zůstávají vidět.</p> {% endfor %} {% endblock %} {% block footer_left %} {% include "@Components/button/button.twig" with { props: { tag: "button", variant: "outline-danger", size: "small", title: "Smazat", iconBefore: true, icon: { src: "svg/user-section/trash.svg", insertAsSvg: true } } } %} {% include "@Components/button/button.twig" with { props: { tag: "button", variant: "outline", size: "small", title: "Upravit", iconBefore: true, icon: { src: "svg/user-section/pencil.svg", insertAsSvg: true } } } %} {% endblock %} {% block footer_right %} {% include "@Components/button/button.twig" with { props: { tag: "button", variant: "outline", title: "Zrušit", attributes: ['data-modal-close="structuredModal"'] } } %} {% include "@Components/button/button.twig" with { props: { tag: "button", variant: "conversion", title: "Uložit" } } %} {% endblock %} {% endembed %} -
<button class="btn --conversion" data-target="structuredModal" data-toggle="modal"> <span class="btn__title ">Open structured modal</span> </button> <div data-modal tabindex="-1" role="dialog" aria-modal="true" aria-labelledby="structuredModal-title" aria-hidden="true" class="base-modal base-modal--structured base-modal--sheet" id="structuredModal"> <div class="base-modal__box --md"> <div class="base-modal__header"> <div class="base-modal__heading"> <h3 class="base-modal__title" id="structuredModal-title">Nastavení hlídače</h3> <div class="base-modal__subtitle">Určete jak často a kam chcete novinky posílat.</div> </div> <button type="button" class="base-modal__close-btn" data-modal-close="structuredModal" aria-label="Zavřít"> <span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 5l10 10M15 5L5 15"/></svg> </span> </button> </div> <div class="base-modal__content base-modal__body"> <div class="f-wrap "> <label class="f-label" for="structured-modal-name"> <span class="f-label__title">Název hlídače</span> </label> <span class="f-input__wrapper --with-icon-right"> <input class="f-base" type="text" id="structured-modal-name" value="Domy České Budějovice" name=name> <span class="input__icon" aria-hidden="true"> <span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M13.4 3.6l3 3L8 15H5v-3l8.4-8.4z"/></svg> </span> </span> </span> </div> <p class="mt-2">Dlouhý obsah: tělo modalu roluje samostatně, hlavička i patička zůstávají vidět.</p> <p class="mt-2">Dlouhý obsah: tělo modalu roluje samostatně, hlavička i patička zůstávají vidět.</p> <p class="mt-2">Dlouhý obsah: tělo modalu roluje samostatně, hlavička i patička zůstávají vidět.</p> <p class="mt-2">Dlouhý obsah: tělo modalu roluje samostatně, hlavička i patička zůstávají vidět.</p> <p class="mt-2">Dlouhý obsah: tělo modalu roluje samostatně, hlavička i patička zůstávají vidět.</p> <p class="mt-2">Dlouhý obsah: tělo modalu roluje samostatně, hlavička i patička zůstávají vidět.</p> <p class="mt-2">Dlouhý obsah: tělo modalu roluje samostatně, hlavička i patička zůstávají vidět.</p> <p class="mt-2">Dlouhý obsah: tělo modalu roluje samostatně, hlavička i patička zůstávají vidět.</p> </div> <div class="base-modal__footer"> <div class="base-modal__footer-group"> <button class="btn --outline-danger --small --icon-before"> <span class="btn__title ">Smazat</span> <span class="btn__icon "> <span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 6h12M8 6V4h4v2M6 6l0.8 10h6.4L14 6M8.6 9v4.4M11.4 9v4.4"/></svg> </span> </span> </button> <button class="btn --outline --small --icon-before"> <span class="btn__title ">Upravit</span> <span class="btn__icon "> <span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M13.4 3.6l3 3L8 15H5v-3l8.4-8.4z"/></svg> </span> </span> </button> </div> <div class="base-modal__footer-group base-modal__footer-group--end"> <button class="btn --outline" data-modal-close="structuredModal"> <span class="btn__title ">Zrušit</span> </button> <button class="btn --conversion"> <span class="btn__title ">Uložit</span> </button> </div> </div> </div> </div>
Structured – express variant
-
-
{# Varianta express: tmavá hlavička, zlatý nadpis s bleskem, bílý titulek #} {% set modal_props = { id: "expressModal", size: "sm", variant: "express", mobile: "sheet", header: { eyebrow: "Expres", eyebrowIcon: "svg/user-section/bolt.svg", title: "Buďte první, kdo novou nemovitost uvidí" } } %} {% include "@Components/button/button.twig" with { props: { attributes: ['data-target="' ~ modal_props.id ~ '"', 'data-toggle="modal"'], title: "Open express modal", tag: "button" } } %} {% embed "@Components/modal/modal.twig" with { props: modal_props } %} {% block content %} <p>Obsah aktivace Expresu (výhody, souhrn ceny, CTA) přijde v další etapě.</p> {% include "@Components/button/button.twig" with { props: { tag: "button", variant: "conversion", title: "Aktivovat hlídač Expres", extraClass: "w-100 mt-2" } } %} {% endblock %} {% endembed %} -
<button class="btn --conversion" data-target="expressModal" data-toggle="modal"> <span class="btn__title ">Open express modal</span> </button> <div data-modal tabindex="-1" role="dialog" aria-modal="true" aria-labelledby="expressModal-title" aria-hidden="true" class="base-modal base-modal--structured base-modal--express base-modal--sheet" id="expressModal"> <div class="base-modal__box --sm"> <div class="base-modal__header"> <div class="base-modal__heading"> <div class="base-modal__eyebrow"> <span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path d="M11.5 2L5 11h4l-1 7 6.5-9h-4l1-7z"/></svg> </span> <span>Expres</span> </div> <h3 class="base-modal__title" id="expressModal-title">Buďte první, kdo novou nemovitost uvidí</h3> </div> <button type="button" class="base-modal__close-btn" data-modal-close="expressModal" aria-label="Zavřít"> <span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 5l10 10M15 5L5 15"/></svg> </span> </button> </div> <div class="base-modal__content base-modal__body"> <p>Obsah aktivace Expresu (výhody, souhrn ceny, CTA) přijde v další etapě.</p> <button class="btn --conversion w-100 mt-2"> <span class="btn__title ">Aktivovat hlídač Expres</span> </button> </div> </div> </div>
Schema
{
"props": {
"id": {
"type": "string",
"description": "Unique id of the modal. U strukturovaného modalu (header) povinné – váže titulek (aria-labelledby) a zavírací tlačítko."
},
"title": {
"type": "string",
"description": "Title for accesibility"
},
"size": {
"type": "string",
"description": "xs | sm | md (default) | lg"
},
"close_inner": {
"type": "boolean",
"description": "Set the posisiton of the close button | default false"
},
"close_btn_text": {
"type": "string",
"description": "Custom text for close button | default: 'Zavřít'"
},
"button": {
"type": "object",
"description": "Inherited from 'Core - Button'",
"tag": {
"type": "string",
"description": "a | button | span"
},
"title": {
"type": "string",
"description": "Title for button"
}
},
"header": {
"type": "object",
"description": "{ title, subtitle, eyebrow, eyebrowIcon, icon (inline SVG v kruhu před titulkem), level: 2 | 3 (default) | 4 } – zapne strukturovaný modal: hlavička se zavíracím tlačítkem, rolovatelné tělo (blok content), volitelná patička. Bez header se modal chová jako dřív."
},
"footer": {
"type": "boolean",
"description": "Jen se header: vykreslí patičku s bloky footer_left a footer_right"
},
"variant": {
"type": "string",
"description": "Jen se header: express (tmavá hlavička, zlatý eyebrow – Realitní hlídač Expres)"
},
"mobile": {
"type": "string",
"description": "Jen se header: sheet (na mobilu přilepený ke spodní hraně)"
},
"showOnLoad": {
"type": "boolean",
"description": "Modal je otevřený hned po načtení"
},
"extraClass": {
"type": "string",
"description": "Extra CSS class"
}
}
}