With great difficulty.
And some creativity. (These aren't "official" components in the UI, just some HTML and CSS tricks. They are unlikely to break given their use by some internal apps, but this is not guaranteed, and they are not documented for that reason.)
Here is one topic that gives one example--I know it focuses on the table, though the "button" input thing it uses is really all you asked about:
For an entire working example, see also the "Lights Usage Table" example app linked to in a post there.