lustre-labs / lustre

An Elm-inspired framework for building HTML templates, single page applications, and server-rendered components in Gleam!
https://hexdocs.pm/lustre
MIT License
744 stars 53 forks source link

feat: add role attr #34

Closed cdaringe closed 5 months ago

cdaringe commented 5 months ago

problem

wanted role constructor, but was missing

solution

add it!

not an issue if you don't want to accept, and maybe consider doing a11y stuff in a big wave

hayleigh-dot-dev commented 5 months ago

Awesome, thanks! I'd like to time lustre's next release with the next gleam compiler release so you'll have to stick to attribute("role", ...) in your own code for a while, but thank you :)

What are you building? 👀

cdaringe commented 5 months ago

so you'll have to stick to attribute("role", ...)

np!

What are you building? 👀

a control gui for a pan/tilt gimbal :)