Customized form components included with Bootstrap 4 are meant to take the place of the browser’s default elements.
==== example mukavu -====
Custom Checkbox
Wrap a container element, such as <div>, with the classes .custom-control and .custom-checkbox around the checkbox to create a custom checkbox. Next, include the .custom-control-input in the input that has the type=”checkbox” attribute.
Tip: Include the .custom-control-label class in labels if you plan to use them for accompanying content. Keep in mind that the for attribute’s value and the checkbox’s id must match:
Toggle me
Example
Custom Switch
Wrap a checkbox in a container element (such as <div>) with the classes .custom-control and .custom-switch to create a custom “toggle switch”. Next, give the checkbox the .custom-control-input class:
==== BUTTON MUKAVA ====
Example
Custom Radio buttons
Wrap a container element, such as <div>, with the classes.custom-control and.custom-radio around the radio button to create a custom radio button. Next, include the.custom-control-input in the input that has the type=”radio” attribute.
Tip: Add the .custom-control-label class to it if you plan to utilize labels for the accompanying content. Keep in mind that the radio’s id and the value of the for property must match:
Â
Example
Inline Custom Form Controls
Add the .custom-control-inline to the wrapper/container if you want the custom form controls to be inline, or side by side:
Example
Custom Select Menu
Add the .custom-selectclass to the <select> element to create a custom select menu:
==== BUTTON MUKAVA ====
Example
Custom Select Menu Size
To make a small choose menu, use the .custom-select-sm class, and to make a large one, use the .custom-select-lg class:
==== BUTTON MUKAVA ====
Example
Custom Range
Add the .custom-range class to an input with type=”<range>” to create a custom range menu:
==== BUTTON MUKAVA ====
Example
Custom File Upload
Wrap a container element around the input with type=”file” and a class of .custom-file to create a custom file upload. Next, give it the .custom-file-input extension.
Advice: Include the .custom-file-label class in labels if you plan to use them for accompanying text. Keep in mind that the checkbox’s id and the value of the for property must match:
==== BUTTON MUKAVA ====
It should be noted that additional jQuery code is required if you like the file name to show up when you choose a certain file: