Button group styling

The site's documentation/example depicts a horizontal button group, but the code appears to be written for a vertical one. Is this intentional?