Across UI Kit v2.0

Overlays

Dialogs, tooltips, dropdowns, and drawers for layered interactions.

Tooltip

Component

Contextual hints that appear on hover or focus with four positions.

Tooltip on topTooltip on bottom
HTML
<span class="across-tooltip-trigger">
  <button>Hover me</button>
  <span class="across-tooltip">Tooltip text</span>
</span>
<!-- Positions: default top, .across-tooltip--bottom, --left, --right -->

Drawer

ComponentOverlay

Side-sliding panels for secondary content, filters, or mobile navigation.

HTML
<div class="across-drawer-backdrop" id="drawer-backdrop"></div>
<div class="across-drawer across-drawer--right" id="my-drawer">...</div>
<div class="across-drawer across-drawer--bottom" id="my-bottom">...</div>
<script>AcrossUI.openDrawer('my-drawer');</script>

Alert Dialog

ComponentNew

A modal dialog that interrupts the user with important content and expects a response.

Structure: .across-alert-dialog > .across-alert-dialog__content.

Usage: Use for destructive actions or critical confirmations.

Popover

ComponentNew

Displays rich content in a portal, triggered by a button.

Dimensions

Structure: .across-popover > .across-popover__trigger + .across-popover__content.

Interaction: Click to toggle. Closes on outside click.

Hover Card

ComponentNew

For sighted users to preview content available behind a link.

@across_ui
A
Across UI
@across_ui
The UI kit for building high-quality, accessible web apps and design systems.

Structure: Trigger with data-hover-card="ID" and target .across-hover-card with matching ID.

Interaction: Opens on hover with a slight delay. Closes when mouse leaves both trigger and card.

Command Menu

ComponentNew

Fast, composable, unstyled command menu for React and Vue.

Press ⌘K to open the command menu.

Structure: .across-command-menu overlay containing input and results.

Shortcuts: Cmd+K to toggle, Arrows to navigate, Enter to select.

Context Menu

ComponentNew

Displays a menu located at the pointer, triggered by a right-click.

Right click here

Usage: Add data-context-menu="ID" to the trigger area.

Structure: .across-context-menu (hidden by default) containing items.

Are you absolutely sure?

This action cannot be undone. This will permanently delete your account and remove your data from our servers.

Suggestions
Calendar
Search Emoji
Calculator
Settings
Profile Manage your personal information
⌘P
Billing Manage your subscription
⌘B

Modal Example

This is a demo modal dialog. Close via X, backdrop, or Escape.

Modals are useful for confirmations, forms, or detailed information.

Drawer Example

This drawer slides in from the right

Drawers are useful for secondary content, filters, settings, or detailed information.

Close by clicking the X, the backdrop, or pressing Escape.

Bottom Sheet

Mobile-friendly slide-up panel

Bottom sheets are great for mobile interfaces where screen real estate is limited.