Available Components
Oat UI provides the following built-in web components:<ot-tabs>
Accessible tab interface with automatic keyboard navigation and ARIA state management.Tabs Documentation
View complete usage guide, examples, and API reference
- Arrow key navigation (Left/Right)
- Automatic ARIA attributes
- Custom events (
ot-tab-change) - Programmatic tab switching via
activeIndexproperty
<ot-dropdown>
Popover-based dropdown menus with smart positioning and keyboard navigation.Dropdown Documentation
View complete usage guide, examples, and API reference
- Auto-positioning (adjusts to viewport)
- Arrow key navigation
- Escape to close
- Click-outside detection
Tooltip Enhancement
Automatic conversion oftitle attributes to styled tooltips with progressive enhancement.
Tooltip Documentation
View complete usage guide and examples
- Progressive enhancement (native title works without JS)
- Automatic
aria-labelgeneration - MutationObserver for dynamic content
- 700ms delay before showing
Sidebar Toggle
Click handler for responsive sidebar layouts with mobile slide-out behavior.Sidebar Documentation
View complete layout guide and examples
- Responsive behavior (desktop vs mobile)
- Click-outside to dismiss on mobile
- Attribute-based API (
data-sidebar-toggle,data-sidebar-layout)
Progressive Enhancement
All Oat UI components are designed with progressive enhancement:Components work without JavaScript in degraded mode
Native HTML semantics ensure accessibility
JavaScript enhances the experience with keyboard navigation and ARIA
Browser Support
Oat UI web components work in all modern browsers that support:- Custom Elements (Web Components)
- ES6 classes and private fields
- Popover API (for dropdowns and menus)
Oat includes a polyfill for Safari’s
commandfor attribute used in dialog controls.