Anatomy
Import the primitives and use the part:
@using Blazix.Primitives
<ToggleRoot />Use it on its own, or in a Toggle Group, which shares one state between a series of toggles.
API Reference
ToggleRoot
Renders a <button> element.
Other attributes are passed to the element it renders.