StyledButton
See original GitHub issueHello,
I have problem with creating StyledButton in Kotlin/JS project.
I did this:
styledButton { css { backgroundColor = Color("#fff") color = Color("#aaa") border = "none" cursor = Cursor.pointer padding = "15px" fontSize = LinearDimension("16px") hover { color = Color("#222") } focus { outline = Outline.none } position = Position.absolute left = LinearDimension("35%") top = LinearDimension("50%") zIndex = 100 borderTopLeftRadius = LinearDimension("5px") borderBottomLeftRadius = LinearDimension("5px") transform { translateX(LinearDimension("-100%")) } } i { +"Down" } }
But i don’t know how to add eventListener to this button. Can you help me ?
Thank you very much.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Ok, thank you for your help. 💯
It depends on your case. It will be more productive to ask this question in Slack with more detailed description