From 90f847b75732e0b808fe994c54d6655203a1db8d Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Sat, 13 Jul 2024 10:36:26 -0700 Subject: [PATCH] added table components --- components/bulma/table.templ | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 components/bulma/table.templ diff --git a/components/bulma/table.templ b/components/bulma/table.templ new file mode 100644 index 0000000..2356404 --- /dev/null +++ b/components/bulma/table.templ @@ -0,0 +1,37 @@ +package bulma + +// Creates a that accepts children +templ Table(){ +
+ { children... } +
+} + +// Creates a that accepts children. +templ TableHeader() { + { children... } +} + +// Creates a that accepts children. +templ TableRow() { + { children... } +} + +// Creates a and writes the given value +templ TableHeaderData(value string) { + { value } +} + +// Creates a that allows you to also add a tooltip value +templ TableHeaderDataToolTip(value, tooltip string) { + { value } +} + +// Creates a that accepts children. +templ TableDataChildren() { + { children... } +} + +templ TableData(value string) { + { value } +} \ No newline at end of file