Skip to content

Toggle Icon

BsToggleIcon is a lightweight component which is used to toggle two different icon. It can be used inside almost any component or html element. BsToggleIcon load icon from Google Material Symbols dynamically.

Updated on v2.1.0

Overview

BsToggleIcon uses the android icon name as in Google Material Symbols for its icon name. BsToggleIcon has six icon variants, namely: Outlined (default), Rounded, Sharp, Outlined Filled, Rounded Filled, and Sharp Filled.

Use suffix _outlined, _rounded, _sharp, _filled, _outlined_filled, _rounded_filled, or _sharp_filled on icon property to use the icon variant mentioned above, otherwise default icon variant will be used. Suffix _filled and _outlined_filled will display the same icon variant. And you can either use suffix *_filled or set the filled property to true to display an icon variant with fill style.

The size property is used to set the icon size. And if not set, the default size will be used.

INFO

Since Vue MDBootstrap v2.1.0, Google Material Icons are replaced with Google Material Symbols.

IMPORTANT

The <bs-icon-toggle> tag still works, but has been deprecated since v2.0.0.

API Reference

Released under the BSD-3-Clause License.