Files
metabuilder/packages/ui_level2/seed/scripts/comments/composer.lua
2025-12-30 13:32:53 +00:00

24 lines
526 B
Lua

-- Comment composer component
-- Single function module for comments UI
require("comments.types")
---@class Composer
local M = {}
---Render comment composer form
---@return UIComponent
function M.composer()
return {
type = "Card",
children = {
{ type = "CardContent", children = {
{ type = "TextArea", props = { name = "comment", placeholder = "Write a comment..." } },
{ type = "Button", props = { text = "Post", onClick = "postComment" } }
}}
}
}
end
return M