Across UI Kit v2.0

Buttons & Controls

Buttons, switches, grouped toggles, and selection controls for Across apps.

Button

Component Wing

Action triggers that incorporate the Across Wing mechanics. Available in primary, secondary, ghost variants, and app accent colors.

Usage

Use Primary for main actions, Secondary for alternatives, and Ghost for tertiary actions. Accent colors (Work, Look, Share) reinforce app context within the suite.

HTML
<button class="across-btn across-btn--primary">Primary</button>
<button class="across-btn across-btn--secondary">Secondary</button>
<button class="across-btn across-btn--ghost">Ghost</button>

<!-- With icon -->
<button class="across-btn across-btn--work">
  <i class="ph-light ph-briefcase"></i>
  Work
</button>

<!-- Sizes -->
<button class="across-btn across-btn--primary across-btn--sm">Small</button>
<button class="across-btn across-btn--primary across-btn--lg">Large</button>

Switch

Component

On/off switches for binary settings. Includes app accent variants and a small size.

HTML
<label class="across-switch">
  <input type="checkbox" class="across-switch__input">
  <span class="across-switch__track">
    <span class="across-switch__thumb"></span>
  </span>
  <span class="across-switch__label">Enable feature</span>
</label>

<!-- App accent variant -->
<label class="across-switch across-switch--work">...</label>
<label class="across-switch across-switch--share">...</label>

<!-- Small size -->
<label class="across-switch across-switch--sm">...</label>

Button Group

Component

Connected buttons for related actions or toggles. Perfect for view switchers, filters, and segmented controls.

Connected Buttons
Toggle (Single Active)
Segmented Control
Pill Shape
HTML
<!-- Basic connected buttons -->
<div class="across-btn-group">
  <button class="across-btn across-btn--secondary">Day</button>
  <button class="across-btn across-btn--secondary">Week</button>
  <button class="across-btn across-btn--secondary">Month</button>
</div>

<!-- Toggle variant (single active) -->
<div class="across-btn-group across-btn-group--toggle" role="group">
  <button class="across-btn is-active" aria-pressed="true">List</button>
  <button class="across-btn" aria-pressed="false">Grid</button>
</div>

<!-- Segmented control (outlined) -->
<div class="across-btn-group across-btn-group--outlined">
  <button class="across-btn">1D</button>
  <button class="across-btn is-active">1W</button>
  <button class="across-btn">1M</button>
</div>

<!-- Pill shape -->
<div class="across-btn-group across-btn-group--pill">...</div>

<!-- Sizes -->
<div class="across-btn-group across-btn-group--sm">...</div>
<div class="across-btn-group across-btn-group--lg">...</div>

Checkbox

Component New

Custom-styled checkboxes with indeterminate state support and descriptions.

Structure: <label class="across-checkbox"> wraps input, box, and label

Sizes: .across-checkbox--sm, default, .across-checkbox--lg

Modifiers: .across-checkbox--with-desc for description text

Indeterminate: Set via JS: checkbox.indeterminate = true

Radio Group

Component New

Radio button groups for single-select options with keyboard navigation.

Notification preference
Plan type
Export format

Structure: .across-radio-group wraps individual .across-radio labels

Layout: Default is vertical; add .across-radio-group--horizontal for inline

Descriptions: Use .across-radio--with-desc with .across-radio__content wrapper

Modal Example

This is a demo modal dialog. You can close it by clicking the X button, clicking the backdrop, or pressing the Escape key.

Modals are useful for focused interactions like confirmations, forms, or displaying detailed information.

Drawer Example

This drawer slides in from the right

Drawers are useful for secondary content, filters, settings, or detailed information that doesn't require a full modal.

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. They can contain actions, forms, or any content.