Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 779 Bytes

radio.md

File metadata and controls

35 lines (25 loc) · 779 Bytes

Radios

Bootstrap documentation

Basic usage

{{ bs()->radio('lonely_radio')
       ->description('This is a radio which is sitting here alone') }}
{{ bs()->radio('lonely_radio_2')
       ->disabled()
       ->description('I am disabled') }}

HTML description

{{ bs()->radio('i_am')
       ->description('I am a <a href="#">human</a>') }}

Wrapped inside a form group

It can be wrapped inside a form group if needed (to show errors for instance).

{{ bs()->formGroup()
       ->label('Terms of Use', true)
       ->control(bs()->radio('agree_terms')
                     ->description('I have read the <a href="#">terms of use</a>')) }}