Adds annotations to Mirador 4 implementation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
astanley dc3cc1cb13 initial commit 2 months ago
..
Color initial commit 2 months ago
Item initial commit 2 months ago
Section initial commit 2 months ago
dist initial commit 2 months ago
private initial commit 2 months ago
useAsyncList initial commit 2 months ago
useCalendarState initial commit 2 months ago
useCheckboxGroupState initial commit 2 months ago
useColorAreaState initial commit 2 months ago
useColorFieldState initial commit 2 months ago
useColorPickerState initial commit 2 months ago
useColorSliderState initial commit 2 months ago
useColorWheelState initial commit 2 months ago
useComboBoxState initial commit 2 months ago
useControlledState initial commit 2 months ago
useDateFieldState initial commit 2 months ago
useDatePickerState initial commit 2 months ago
useDateRangePickerState initial commit 2 months ago
useDisclosureGroupState initial commit 2 months ago
useDisclosureState initial commit 2 months ago
useDraggableCollectionState initial commit 2 months ago
useDroppableCollectionState initial commit 2 months ago
useListData initial commit 2 months ago
useListState initial commit 2 months ago
useMenuTriggerState initial commit 2 months ago
useMultipleSelectionState initial commit 2 months ago
useNumberFieldState initial commit 2 months ago
useOverlayTriggerState initial commit 2 months ago
useRadioGroupState initial commit 2 months ago
useRangeCalendarState initial commit 2 months ago
useSearchFieldState initial commit 2 months ago
useSelectState initial commit 2 months ago
useSingleSelectListState initial commit 2 months ago
useSliderState initial commit 2 months ago
useTabListState initial commit 2 months ago
useTableState initial commit 2 months ago
useTimeFieldState initial commit 2 months ago
useToastState initial commit 2 months ago
useToggleGroupState initial commit 2 months ago
useToggleState initial commit 2 months ago
useTokenFieldState initial commit 2 months ago
useTooltipTriggerState initial commit 2 months ago
useTreeData initial commit 2 months ago
useTreeState initial commit 2 months ago
useVirtualizerState initial commit 2 months ago
.npmignore initial commit 2 months ago
LICENSE initial commit 2 months ago
README.md initial commit 2 months ago
package.json initial commit 2 months ago

README.md

React Stately

A library of React Hooks that provides cross-platform state management for your design system.

Features

  • 🏠 Foundational – React Stately provides the foundation and core logic for your component library. It handles state management for common components through an easy-to-use interface.
  • 📱 Cross-platform – React Stately only provides state management, with no assumptions about the DOM or other view systems.
  • ⚓️ Powered by React Hooks – React Stately is implemented as a library of React Hooks, which allows you to adapt them to your needs through composition.
  • 🎨 Design agnostic – React Stately doesn’t make any assumptions about your design. It provides state management that’s intrinsic to the functionality of the component.

Getting started

The easiest way to start building a component library with React Stately 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 {useRadioGroupState} from '@react-stately/radio';

function RadioGroup(props) {
  let state = useRadioGroupState(props);

  return (
    <>
      <label>
        <input
          type="radio"
          name={state.name}
          checked={state.selectedValue === 'dogs'}
          onChange={() => state.setSelectedValue('dogs')}
        />
        Dogs
      </label>
      <label>
        <input
          type="radio"
          name={state.name}
          checked={state.selectedValue === 'cats'}
          onChange={() => state.setSelectedValue('cats')}
        />
        Cats
      </label>
    </>
  );
}

<RadioGroup
  defaultValue="dogs"
  onChange={(value) => alert(`Selected ${value}`)}
/>

Learn more

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