@reach/auto-id
- Version 0.18.0
- Published
- 15.6 kB
- 1 dependency
- MIT license
Install
npm i @reach/auto-id
yarn add @reach/auto-id
pnpm add @reach/auto-id
Overview
Autogenerate IDs to facilitate WAI-ARIA and server rendering.
Index
Functions
Functions
function useId
useId: { (idFromProps: string): string; (idFromProps: number): number; (idFromProps: string | number): string | number; (idFromProps: string): string; (idFromProps: number): number; (idFromProps: string | number): string | number; (): string;};
useId
Autogenerate IDs to facilitate WAI-ARIA and server rendering.
Note: The returned ID will initially be
null
and will update after a component mounts. Users may need to supply their own ID if they need consistent values for SSR.See Also
Docs https://reach.tech/auto-id
Package Files (1)
Dependencies (1)
Dev Dependencies (6)
Peer Dependencies (2)
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@reach/auto-id
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@reach/auto-id)
- HTML<a href="https://www.jsdocs.io/package/@reach/auto-id"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3568 ms. - Missing or incorrect documentation? Open an issue for this package.