<% switch (component) { /** * Text input & password input tag * @param label Label text * @param id Unique element ID * @param password If true, the element will be rendered as a password instead of plain text input * @param placeholder Placeholder text * @param cssClass Custom CSS class if needed */ case 'text': %>
<% break; /** * Checkbox (toggle button) tag * @param label Label text * @param id Unique element ID * @param iconClass Additional CSS Class for the icon inside the button * @param cssClass Custom CSS class if needed */ case 'checkbox': %>
<%= label %>
<% break; /** * Dropdown menus * @param inputId Unique ID for the hidden text input of the dropdown * @param id Unique element ID * @param iconClass Additional CSS Class for the icon next to the title (if you want to have one) * @param placeholder Placeholder text * @param cssClass Custom CSS class for the dropdown menu itself if needed */ case 'dropdown': %>
<% break; default: %>

Unknown component: <%= component %>

<% break; } %>