🚧 Under Construction
This component documentation is currently being developed. Some features may be incomplete.
Primary
View in Pattern LabHTML Markup
<button class="hoo-button-primary"><span class="hoo-button-label">Button</span>
</button>
Primary button also has on disabled state the correct color values.
To disable this button simply add the disable="true" as well as the aria-disabled="true" to it.
Supported States:
- Default - Normal button state
- Hover - Mouse over state
- Active - Pressed state
- Focus - Focused through keyboard navigation
- Disabled - Non-interactive state
SCSS Imports
Main Component
@n8d/htwoo-core/components/buttons
SCSS Partial Location/src/styles/01-atoms/buttons/_buttons.scss
CSS Classes
Base Classes
.hoo-button-primary- Primary button styling
States
.hoo-button-primary:hover- Hover state.hoo-button-primary:active- Active/pressed state.hoo-button-primary:focus- Focus state.hoo-button-primary:disabled- Disabled state.hoo-button-primary[aria-disabled="true"]- ARIA disabled state
Usage Examples
Basic Primary Button
<button class="hoo-button-primary">Primary Button</button>
Disabled Primary Button
<button class="hoo-button-primary" disabled="true" aria-disabled="true">Disabled Primary</button>