Fa button ahorow a ɛtoatoa so bom wɔ line biako so ne button kuw no, na fa JavaScript ma wɔn tumi kɛse.
Nhwɛso titiriw
Fa mu kyekyere bɔtn ahorow a ɛtoatoa so no .btnho .btn-group. Fa ka JavaScript radio a wopɛ ne checkbox style suban ho denam yɛn buttons plugin no so .
Hwɛ sɛ ɛteɛ rolena fa ahyɛnsode bi ma
Sɛnea ɛbɛyɛ a mfiridwuma a ɛboa (te sɛ screen readers) bɛda no adi sɛ wɔaboaboa bɔtn ahorow a ɛtoatoa so ano no, roleɛsɛ sɛ wɔde su a ɛfata ma. Wɔ bɔtn akuw ho no, eyi bɛyɛ role="group", bere a ɛsɛ sɛ adwinnade ahorow no nya role="toolbar".
Bio nso, ɛsɛ sɛ wɔma akuw ne nnwinnade ahorow no agyiraehyɛde a ɛda adi pefee, efisɛ sɛ ɛnte saa a, mmoa mfiridwuma dodow no ara remmɔ amanneɛ, ɛmfa ho sɛ dwuma su a ɛfata wɔ hɔ no. Wɔ nhwɛso ahorow a wɔde ama wɔ ha no mu no, yɛde aria-label, nanso wobetumi de akwan foforo te sɛ nea aria-labelledbywobetumi nso adi dwuma.
Button adwinnade pon
Ka button akuw ahorow bom yɛ button adwinnade ahorow ma nneɛma a ɛyɛ den kɛse. Fa utility classes di dwuma sɛnea ɛho hia na fa space out akuw, buttons, ne nea ɛkeka ho.
Feel free to mix input groups with button groups in your toolbars. Similar to the example above, you’ll likely need some utilities though to space things properly.
@
@
Sizing
Instead of applying button sizing classes to every button in a group, just add .btn-group-* to each .btn-group, including each one when nesting multiple groups.
Nesting
Place a .btn-group within another .btn-group when you want dropdown menus mixed with a series of buttons.