npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@aqua-ds/react

v0.0.4

Published

Version React of Aqua Design System

Readme

AquaDs React

version lastUpdated

AquaDs

Design together. Build together. Speak the same language.

npm i @aqua-ds/react


Integrate seamlessly into React applications using the dedicated package

Installation

To use Aqua DS in a React project, you must have an existing React application running with support for the latest Node and npm versions.

Once your project is ready, you only need to install the package, import the components, and use them directly in JSX.

⚠️ When using Aqua Web Components directly in a React (Next.js) application, they can only be rendered on the client side. This means you must load them inside a Client Component to ensure proper initialization and avoid hydration errors.

We are currently working on a solution to provide better SSR support

  1. Install the React package:
npm i @aqua-ds/react

You’re ready to use Aqua in React!

Using Aqua DS Components

Here's a basic example of how to use an Aqua DS component in a React application:

// App.jsx
import { AqButton } from '@aqua-ds/react';

export const ButtonSet = () => {
	const handleClick = (e: MouseEvent) => {
		console.log('AqButton click from React', e);
	}

  return (
    <div>
      <AqButton variant="primary" type="submit" onClick={(e) => handleClick(e)}>
        <em className="aq-icon-settings"></em>Button
      </AqButton>
    </div>
  );
}

Here’s how you can use components from the official list:

Components

Naming Convention in React

In React, Aqua DS components must be imported and used in PascalCase to ensure full compatibility with JSX. Unlike Vue, where components are often written in kebab-case, React requires component names to follow PascalCase (a variant of CamelCase) when rendered in JSX.

...
import { AqButton } from '@aqua-ds/react';
...

return (
  ...
  <AqButton variant="primary">Button</AqButton> <!-- ✅ Correct -->
	...
)

Avoid using <aq-button> in templates. It may not render correctly in some environments.

Handling Component Events

Aqua DS components support standard React event handling. You can use event listeners like onClick, onChange, etc., as you would with native React elements.

The <AqButtonSplit> component from Aqua DS emits custom events such as onClickLeft, onClickRight, and onClickItem. These events can be handled using React's onEventName pattern, following camelCase convention.

Here is a full example:

import { AqButtonSplit } from '@aqua-ds/react';

export const ButtonSplitSet = ({ items }) => {
  const handleaqclickLeft = (e) => {
    console.log('Left button clicked', e);
  };

  const handleaqclickRight = (e) => {
    console.log('Right button clicked', e);
  };

  const handleaqclickItem = (e) => {
    console.log('Dropdown item clicked', e.detail); // Custom event data
  };

  return (
    <AqButtonSplit
      items={items || []}
      variant="success"
      size="medium"
      badge={{ number: 2, state: 'default' }}
      icon="aq-icon-send-money"
      onClickLeft={(e) => handleaqclickLeft(e)}
      onClickRight={(e) => handleaqclickRight(e)}
      onClickItem={(e) => handleaqclickItem(e)}
    >
      Button
    </AqButtonSplit>
  );
};

Note: Ensure the component you're using emits the event you're listening for. Event names follow the standard camelCase format in React.

Always refer to the documentation of each individual component for a complete list of supported events, their purpose, and usage examples.

Passing Properties to Components

When using Aqua DS components in React, you can pass properties directly as JSX props, just like with native React components.

Here's a practical example with the <AqButtonSplit /> component:

import { AqButtonSplit } from '@aqua-ds/react';

const items = [
  { id: '1', name: 'Option 1' },
  { id: '2', name: 'Option 2' },
];

const badge = { number: 2, state: 'default' };

export const ButtonSplitExample = () => {
  const handleaqclickLeft = (e: MouseEvent) => {
    console.log('Left button clicked', e);
  };

  const handleaqclickRight = (e: MouseEvent) => {
    console.log('Right button clicked', e);
  };

  const handleaqclickItem = (e: CustomEvent) => {
    console.log('Item clicked:', e.detail);
  };

  return (
    <AqButtonSplit
      items={items}
      variant="success"
      size="medium"
      badge={badge}
      icon="aq-icon-send-money"
      onClickLeft={handleaqclickLeft}
      onClickRight={handleaqclickRight}
      onClickItem={handleaqclickItem}
    >
      Button
    </AqButtonSplit>
  );
};

Properties like items, variant, badge, and icon are passed as standard props. Event handlers are bound using the onEventName convention.

Two Way Binding

In React, two-way binding is typically achieved by using useState to store the component's value and updating it via an event handler like onChange.

Here is an example using <AqCheckbox>:

import { useState } from 'react';
import { AqCheckbox } from '@aqua-ds/react';

export const CheckboxExample = () => {
  const [checkedValue, setCheckedValue] = useState<string | undefined>(undefined);

  const handleValueChanged = (event: CustomEvent) => {
    const value = event.detail;
    setCheckedValue(value);
    console.log('Checkbox changed to:', value);
  };

  return (
    <AqCheckbox
      id-checkbox="checkbox-1"
      name="checkbox-1"
      label="This is a checkbox 1"
      icon="aq-icon-message"
      isRequired
      info="This is an information tooltip"
      value-checkbox="option-1"
      onChange={handleValueChanged}
    />
  );
};

✅ Use useState to track checkbox value changes via the onChange event handler.

🧠 value-checkbox represents the selected value passed to the component.

On this page

Design together. Build together. Speak the same language.