Socket
Socket
Sign inDemoInstall

@react-types/shared

Package Overview
Dependencies
3
Maintainers
2
Versions
712
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @react-types/shared

Spectrum UI components in React


Version published
Weekly downloads
2M
decreased by-1.05%
Maintainers
2
Install size
83.3 kB
Created
Weekly downloads
 

Package description

What is @react-types/shared?

@react-types/shared is a TypeScript utility library that provides shared types and interfaces for React components. It is part of the React Spectrum collection of libraries, which are designed to work together to build accessible, performant, and robust user interfaces.

What are @react-types/shared's main functionalities?

DOMProps

The DOMProps interface defines common properties that can be applied to any DOM element, such as id, className, and style.

interface DOMProps {
  id?: string;
  className?: string;
  style?: React.CSSProperties;
}

AriaLabelingProps

The AriaLabelingProps interface defines properties for ARIA labeling, which are used to improve accessibility by providing additional context to screen readers.

interface AriaLabelingProps {
  'aria-label'?: string;
  'aria-labelledby'?: string;
  'aria-describedby'?: string;
}

StyleProps

The StyleProps interface defines common style properties that can be applied to components, such as margin, padding, and border.

interface StyleProps {
  margin?: string | number;
  padding?: string | number;
  border?: string;
}

Other packages similar to @react-types/shared

Readme

Source

@react-types/shared

This package is part of react-spectrum. See the repo for more details.

FAQs

Last updated on 31 May 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc