mode | SnowUIStyleMode | — | mode={value} | Current visual style; supports bind:mode. Takes priority over defaultMode on mount. A click updates it, and it follows root-attribute changes while document synchronization is active. |
defaultMode | SnowUIStyleMode | — | defaultMode={value} | Initial uncontrolled mode on mount; mode takes priority. If neither is set, reads the page root. With applyToDocument=false, falls back to snowui. |
applyToDocument | boolean | true | applyToDocument | Synchronize current state to document.documentElement with mode="ios", removing mode for SnowUI. false disables reading, writing, and observing the page attribute; the caller owns the style target. Does not write storage. |
ariaLabel | string | — | ariaLabel="Example" | Override the accessible Button name. By default, describes the state that clicking will switch to and follows LocaleProvider. |
snowuiLogo | Snippet | — (built-in graphic) | snowuiLogo={snowuiLogoContent} | Replace the SnowUI Logo shown while the current mode is snowui. Changes graphics only, not switching logic. |
appleLogo | Snippet | — (built-in graphic) | appleLogo={appleLogoContent} | Replace the Apple Logo shown while the current mode is apple. Changes graphics only, not switching logic. |
children | Snippet | — | <StyleButton>Content</StyleButton> | Custom content after the state icon. Without it, the host Button uses iconOnly layout automatically. |
disabled | boolean | false | disabled | Disable the Button action without preventing synchronization of an external binding or page attribute. |
onModeChange | (mode: SnowUIStyleMode) => void | — | onModeChange={(value) => { /* handle value */ }} | Receive the new value after a user click. Initialization, external assignments, and observed page-attribute changes do not call it. |
onclick | (event: MouseEvent) => void | — | onclick={(value) => { /* handle value */ }} | Called before the state switches on a valid click. In the current implementation, preventDefault() does not cancel the subsequent switch. Not called when disabled. |