Druid is a UI component library, started by AGulev around ~2 years ago. I’ve use it and develop sometimes. For all this years it’s slowly improving and now I want to share it with community.
Druid GitHub: https://github.com/Insality/druid
Druid API: https://insality.github.io/druid/
Live example (HTML5): https://insality.github.io/druid/druid/
Live example of druid-assets (HTML5): https://insality.github.io/druid-assets/
Druid provides next basic components: Button, Text, Lang text, Scroll, Input, Progress, Slider, Checkbox, Checkbox group, Radio group, Blocker, Back Handler, Timer, Grid, Hover and Swipe
All of this components - simple GUI nodes or text nodes. Druid just add logic on your nodes.
local druid = require("druid.druid") local function button_callback(self) print("Button was clicked!") end function init(self) self.druid = druid.new(self) self.druid:new_button("button_node_name", button_callback) end function final(self) self.druid:final() end function on_input(self, action_id, action) return self.druid:on_input(action_id, action) end
Druid allows you to create custom components.
Custom components usually - the GUI template and component logics, what applies upon this GUI template.
Druid assets repository
I’ve created druid-assets repository to make a marketplace with custom styles and components.
Any of druid users can push their own components and styles to share it with the other users
Also, this marketplace is great example to how you can create your custom components
Druid have styles - set of functions and parameters for components to customize their behaviour. Styles used to custom visuals of basic Druid components.
Druid is still developing and now version is 0.2.0. It is possible, what will be breaking changes until 1.0.0. I need your feedback to improve Druid.
All documentation is placed on github. Learn it!
Also there is Druid API, generated by LDoc.