@reach/popover
Render a portal positioned relative to another element.
Last updated 3 years ago by chancestrickland .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @reach/popover 
SYNC missed versions from official npm registry.

@reach/popover

Stable release MIT license

import * as React from "react";
import { Popover, positionDefault } from "@reach/popover";

function Example() {
	const ref = React.useRef(null);
	const [value, setValue] = React.useState("");
	return (
		<div>
			<label>
				<span>Type for a special message</span>
				<input
					type="text"
					ref={ref}
					onChange={(event) => setValue(event.target.value)}
				/>
			</label>

			{value.length > 0 && (
				<Popover targetRef={ref} position={positionDefault}>
					<div>
						<p>Whoa! Look at me!</p>
					</div>
				</Popover>
			)}
		</div>
	);
}

Current Tags

  • 0.18.0                                ...           latest (3 years ago)
  • 0.4.0-beta.0                                ...           next (6 years ago)
  • 0.18.0-pre.5                                ...           pre (3 years ago)

52 Versions

  • 0.18.0-pre.0                                ...           4 years ago
  • 0.18.0                                ...           3 years ago
  • 0.18.0-pre.5                                ...           3 years ago
  • 0.18.0-pre.4                                ...           3 years ago
  • 0.18.0-pre.3                                ...           3 years ago
  • 0.18.0-pre.2                                ...           3 years ago
  • 0.18.0-pre.1                                ...           4 years ago
  • 0.17.0                                ...           4 years ago
  • 0.16.2                                ...           4 years ago
  • 0.16.0                                ...           5 years ago
  • 0.15.3                                ...           5 years ago
  • 0.15.2                                ...           5 years ago
  • 0.15.0                                ...           5 years ago
  • 0.14.0                                ...           5 years ago
  • 0.13.2                                ...           5 years ago
  • 0.13.1                                ...           5 years ago
  • 0.13.0                                ...           5 years ago
  • 0.12.1                                ...           5 years ago
  • 0.12.0                                ...           5 years ago
  • 0.11.2                                ...           6 years ago
  • 0.11.1                                ...           6 years ago
  • 0.11.0                                ...           6 years ago
  • 0.10.5                                ...           6 years ago
  • 0.10.4                                ...           6 years ago
  • 0.10.3                                ...           6 years ago
  • 0.10.2                                ...           6 years ago
  • 0.10.1                                ...           6 years ago
  • 0.10.0                                ...           6 years ago
  • 0.9.0                                ...           6 years ago
  • 0.8.6                                ...           6 years ago
  • 0.8.5                                ...           6 years ago
  • 0.8.4                                ...           6 years ago
  • 0.8.3                                ...           6 years ago
  • 0.8.2                                ...           6 years ago
  • 0.8.0                                ...           6 years ago
  • 0.7.4                                ...           6 years ago
  • 0.7.3                                ...           6 years ago
  • 0.7.2                                ...           6 years ago
  • 0.7.1                                ...           6 years ago
  • 0.7.0                                ...           6 years ago
  • 0.6.4                                ...           6 years ago
  • 0.6.2                                ...           6 years ago
  • 0.6.1                                ...           6 years ago
  • 0.5.0                                ...           6 years ago
  • 0.4.0                                ...           6 years ago
  • 0.4.0-beta.0                                ...           6 years ago
  • 0.3.0                                ...           6 years ago
  • 0.3.0-alpha.0                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
  • 0.0.0                                ...           7 years ago
Downloads
Today 0
This Week 6
This Month 11
Last Day 1
Last Week 5
Last Month 0
Dependencies (5)
Dev Dependencies (6)

Copyright 2013 - present © cnpmjs.org | Home |