- Light
- Dark
- Darkest
- Medium
- Large
- LTR
- RTL
- Default
- Express
Logic button
Component status | Contribution |
---|---|
Current version | @spectrum-css/logicbutton@4.1.3 |
Released | September 13, 2024 |
S2-foundations | @spectrum-css/logicbutton@5.0.0-s2-foundations.14 |
Released | September 12, 2024 |
Usage notes
A LogicButton displays an operator within a boolean logic sequence.
Variants
AndContribution
Show markup
<button type="button" class="spectrum-LogicButton spectrum-LogicButton--and" style="margin-inline-end: 4px;">And</button>
<button type="button" class="spectrum-LogicButton spectrum-LogicButton--and" disabled>And</button>
OrContribution
Show markup
<button type="button" class="spectrum-LogicButton spectrum-LogicButton--or" style="margin-inline-end: 4px;">Or</button>
<button type="button" class="spectrum-LogicButton spectrum-LogicButton--or" disabled>Or</button>
Migration Guide
Remove focus-ring class
We’ve migrated away from the focus-ring class in favor of the native :focus-visible
pseudo-class due to changes in browser support.