Skip to main content

Templates components

The predefined components in the Goffee core mostly consist of html_template/structure pair. Goffee is a program in constant development, we invite you to review the core source code to stay up to date with new components or updates. Below we detail each component along with this main golang structure and html template.

Form components

ElementDescriptionSource code
buttonButton with icons and bootstrap statesform_button.go, form_button.html
checkboxCheckbox with mutiple optionsform_checkbox.go, form_checkbox.html
inputInput form with bootstrap options and planceholdersform_input.go, form_input.html
radioRadio form with mutiple optionsform_radio.go, form_radio.html
selectSelect form with mutiple optionsform_select.go, form_select.html
textareaTextarea form, 3 rows sizeform_textarea.go, form_textarea.html

Content components

ElementDescriptionSource code
badgeClassic bootstrap badgecontent_badge.go, content_badge.html
dropdownBootstrap dropdowncontent_dropdown.go, content_dropdown.html
hrefBootstrap href with mutiple optionscontent_href.go, content_href.html
listBootstrap listcontent_list.go, content_list.html
tableBootstrap table with mutiple optionscontent_table.go, content_table.go.html

Page components

ElementDescriptionSource code
cardBootstrap card with body and linkspage_card.go, page_card.html
headBasic html head with custom title and that includes bootstrap.min.csspage_head.html
footerInput html head with custom title and that includes bootstrap.min.js & popper.min.jspage_footer.html
navBootstrap basic navigation systempage_nav.go, page_nav.html
pageBasic full page that includes head and footer commponentspage_page.html

Bootstrap

Bootstrap provides a collection of pre-designed CSS classes and JavaScript components that simplify the creation of modern, visually appealing interfaces. Bootstrap includes features like a responsive grid system, forms, buttons, and more. It also supports responsive design by default.

Goffee cup includes bootstrap (files are located in the folder storage/public/bootstrap/) and those files are referenced by head and footer commponents from the core.

Goffee from version 1.8 includes boostrap v 5.3 and use sandstone theme. For more information about how boostrap works and develop check the oficial documentation.

Writing your own components & templates

Remember that you can override the template from your application if you use the same filename.

TODO