Buttons
A Button
is a very useful UI element.
Buttons are everywhere in user interfaces. If you think about it, a typical button is made of more basic UI elements: text centered within a rectangle with rounded corners. You could make a button from a Label
and a rectangle Shape
, but it would be a lot of work. Instead, the m2c2kit library has a pre-built Button
.
note
If you click the button, nothing happens. That's because we haven't told the button what to do when it's clicked. We'll learn about interactivity later.
Loading...
Explore:
- By default, buttons are black with white text, but they are customizable