root = Card([header, drinkTable, foodTable, specialCallout, vegFilter, vegItems, hoursSection])
header = CardHeader("Cafe Menu", null)
drinkNames = Col("Drink", ["Coffee", "Tea", "Juice", "Smoothie"], "string")
drinkPrices = Col("Price", ["$3", "$2", "$4", "$5"], "string")
drinkTable = Table([drinkNames, drinkPrices])
foodNames = Col("Food", ["Sandwich", "Salad", "Pizza", "Burger"], "string")
foodPrices = Col("Price", ["$8", "$7", "$12", "$9"], "string")
foodTable = Table([foodNames, foodPrices])
specialCallout = Callout(variant: "info", title: "Today's Special", description: "Avocado Toast – $6")
vegFilter = CheckBoxGroup("veg_filter", [CheckBoxItem("Vegetarian", "Show only vegetarian items", "Vegetarian")], value: [])
vegItem1 = ListItem("Vegetarian Sandwich", "$8", null)
vegItem2 = ListItem("Vegetarian Salad", "$7", null)
vegItem3 = ListItem("Vegetarian Pizza", "$12", null)
vegItem4 = ListItem("Vegetarian Burger", "$9", null)
vegItems = ListBlock([vegItem1, vegItem2, vegItem3, vegItem4])
hoursSection = TextContent("Opening Hours: Mon-Fri 8am-6pm, Sat 9am-5pm, Sun 10am-4pm")