disabled and CSS properties like display.
| Prefix | Type | Example |
|---|---|---|
. |
CSS Class | toggle .active on #btn |
@ |
HTML Attribute | toggle @disabled on #btn |
* |
CSS Property | toggle *display on #box |
's |
DOM Property | toggle #btn's disabled |
Use @disabled to toggle the disabled state of form elements.
Toggle the required attribute on form inputs.
Use *display to toggle element visibility via the CSS display property.
Note: *display toggles between none and the previous display value.
Use *visibility to hide elements while preserving their space in the layout.
Note: *visibility toggles between hidden and visible. Element still occupies space.
Use *opacity for fade effects.
Note: *opacity toggles between 0 and 1. Add CSS transition for smooth fade.
Use toggle @attribute on #element to toggle attributes on specific elements.
.class - Toggle CSS classes for styling changes@attribute - Toggle HTML attributes (disabled, required, readonly, hidden)*property - Toggle CSS properties (display, visibility, opacity)element's @attribute - Reference attribute on specific element*display - Toggles none ↔ previous value (or block)*visibility - Toggles hidden ↔ visible*opacity - Toggles 0 ↔ 1@disabled - Disable/enable form elements@required - Make form fields required/optional@readonly - Make inputs read-only@hidden - Hide elements (HTML5 hidden attribute)@checked - Toggle checkbox/radio state@open - Toggle details/dialog open state