react-aria
Spectrum UI components in React

react-aria downloads react-aria version react-aria license

react-ariaPaquetes similares:
Tendencia de descargas de npm
3 Años
🌟 Muestra el gráfico de uso en tiempo real en el README.md de react-aria, simplemente copia el código a continuación.
## Usage Trend
[![Usage Trend of react-aria](https://npm-compare.com/img/npm-trend/THREE_YEARS/react-aria.png)](https://npm-compare.com/react-aria#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 Muestra el gráfico de tendencia de GitHub Stars en el README.md de react-aria, simplemente copia el código a continuación.
## GitHub Stars Trend
[![GitHub Stars Trend of react-aria](https://npm-compare.com/img/github-trend/react-aria.png)](https://npm-compare.com/react-aria)
Detalle de estadísticas
Paquete
Descargas
Stars
Tamaño
Issues
Publicación
Licencia
react-aria1,362,04414,469585 kB635hace 24 díasApache-2.0
README para react-aria

React Aria

A library of React Hooks that provides accessible UI primitives for your design system.

Features

  • ♿️ Accessible – React Aria provides accessibility and behavior according to WAI-ARIA Authoring Practices, including full screen reader and keyboard navigation support. All components have been tested across a wide variety of screen readers and devices to ensure the best experience possible for all users.
  • 📱 Adaptive – React Aria ensures consistent behavior, no matter the UI. It supports mouse, touch, keyboard, and screen reader interactions that have been tested across a wide variety of browsers, devices, and platforms.
  • 🌍 International – React Aria supports over 30 languages, including right-to-left-specific behavior, internationalized date and number formatting, and more.
  • 🎨 Fully customizable – React Aria doesn’t implement any rendering or impose a DOM structure, styling methodology, or design-specific details. It provides behavior, accessibility, and interactions and lets you focus on your design.

Getting started

The easiest way to start building a component library with React Aria is by following our getting started guide. It walks through all of the steps needed to install the hooks from npm, and create your first component.

Example

Here is a very basic example of using React Aria.

import {useButton} from '@react-aria/button';

function Button(props) {
  let ref = React.useRef();
  let {buttonProps} = useButton(props, ref);

  return (
    <button {...buttonProps} ref={ref}>
      {props.children}
    </button>
  );
}

<Button onPress={() => alert('Button pressed!')}>Press me</Button>

Learn more

React Aria is part of a family of libraries that help you build adaptive, accessible, and robust user experiences. Learn more about React Spectrum and React Stately on our website.