New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@atendesign/javascript-components

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atendesign/javascript-components

A collection of JavaScript libraries that adhere ceremoniously with WCAG guidelines.

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
38
46.15%
Maintainers
4
Weekly downloads
 
Created
Source

Aten Design Group -- JavaScript Components

npm version License: MIT

A collection of JavaScript libraries that adhere ceremoniously with WCAG guidelines. This package provides accessible, keyboard-navigable UI components with full ARIA support and responsive design capabilities.

🐛 Issues & Support

Found a bug or have a feature request? Please open an issue on GitHub.

👤 Author

Philip Stier - Tech Lead, Senior Developer

Installation

npm install @atendesign/javascript-components

Accordion

Features

  • 🌟 Fully accessible implementation
  • ⌨️ Keyboard navigation support
  • 📱 Responsive design
  • 🎨 Customizable styling
  • 🔄 Toggle state management

Basic Usage

HTML

<div class="accordion">
    <h3 class="accordion__heading">
        <button id="accordion-trigger-01" class="accordion__trigger" aria-expanded="false" aria-controls="accordion-section-01>
            Accordion Section
        </button>
    </h3>

    <div id="accordion-section-01" class="accordion__content" role="region" aria-labelledby="accordion-trigger-01">
        <p>This is the accordion content.</p>
    </div>
</div>

JavaScript

import { Accordion } from '@atendesign/javascript-components';

document.addEventListener('DOMContentLoaded', function() { 
    document.querySelectorAll('.accordion').forEach(accordion => {
        new Accordion(accordion, {options});
    });
});

Options

OptionTypeDefaultDescription
triggerSelectorstring'.accordion__trigger[aria-controls]'CSS selector for accordion trigger buttons
contentSelectorstring'.accordion__content'CSS selector for accordion content panels
expandedClassstring'is-expanded'CSS class applied to expanded trigger buttons

Required HTML Attributes

  • aria-expanded on trigger button (automatically managed by the component)
  • aria-controls on trigger button (must match content panel's ID)
  • id on content panel (must match trigger's aria-controls value)
  • aria-labelledby on content panel (must match trigger button's ID)
  • role="region" on content panel

Keyboard Support

  • Enter or Space: Toggle accordion section
  • Mouse click: Toggle accordion section

Tab Content

Features

  • 🌟 Fully accessible implementation
  • ⌨️ Keyboard navigation support
  • 📱 Responsive design
  • 🎨 Customizable styling
  • 🔄 Tab state management

Basic Usage

HTML

<div class="tab-content">
  <div role="tablist" class="tab-content__navigation"></div>

  <div id="tab-content-01"
       class="tab-content__group is-expanded"
       role="tabpanel"
       aria-labelledby="tab-tab-content-01">
    <button type="button"
            id="tab-tab-content-01"
            class="tab-content__trigger is-expanded"
            role="tab"
            aria-haspopup="true"
            aria-selected="true"
            aria-expanded="true"
            aria-controls="tab-content-01">
      Tab 01
    </button>

    <div class="tab-content__content">
      <p>Text content goes here - Tab 01</p>
    </div>
  </div>
</div>

JavaScript

import { TabContent } from '@atendesign/javascript-components';

document.addEventListener('DOMContentLoaded', function() { 
    document.querySelectorAll('.tab-content').forEach(tabContent => {
        new TabContent(tabContent);
    });
});

Options

OptionTypeDefaultDescription
navigationSelectorstring'.tab-content__navigation'CSS selector for desktop navigation
groupSelectorstring'.tab-content__group'CSS selector for tab groups
triggerSelectorstring'.tab-content__trigger'CSS selector for tab buttons
expandedClassstringis-expandedCSS selector for showing expanded groups
breakpointinteger768Media breakpoint at which tabs switch to accordions

Required HTML Attributes

  • role="tablist" on tab container
  • role="tab" on each tab button
  • role="tabpanel" on each content panel
  • aria-selected on tab buttons (automatically managed by the component)
  • aria-controls on tab buttons (must match panel's ID)
  • id on content panels (must match tab's aria-controls value)
  • aria-labelledby on content panels (must match tab button's ID)
  • tabindex on tab buttons (automatically managed by the component)

Keyboard Support

  • Arrow Left/Right: Navigate between tabs
  • Home: Move to first tab
  • End: Move to last tab
  • Enter or Space: Activate focused tab
  • Mouse click: Activate tab

FAQs

Package last updated on 03 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts