Skip to main content

Toggle

<sc-toggle></sc-toggle>

This component let users create toggle.

My Toggle Text

Component Codex

Properties

PropertyDescriptionTypeDefault
borderlessIs this a borderless toggle?booleanfalse
collapsibleAre these collapsible?booleantrue
disabledDisables the details so it can't be toggled.booleanfalse
openIndicates whether or not the details is open. You can use this in lieu of the show/hide methods.booleanfalse
shadyIs this a shadybooleanfalse
showControlShould we show a radio control?booleanfalse
showIconShould we show the arrow icon?booleantrue
summaryThe summary to show in the details header. If you need to display HTML, use the `summary` slot instead.string

Events

EventDescriptionType
scHideShow the toggleCustomEvent<void>
scShowShow the toggleCustomEvent<void>

Shadow Parts

PartDescription
base
body
content
header
radio
summary
summary-icon