0.7.0 • Published 9 months ago

@ciceksepeti/cui-popover v0.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@ciceksepeti/cui-popover

npm version storybook PRs Welcome license

Popovers are small overlays that open on demand. They let users access additional content and actions without cluttering the page.

Installing

Using Npm:

$ npm install @ciceksepeti/cui-popover

Using Yarn:

$ yarn add @ciceksepeti/cui-popover

Example

import React, { useRef, useState } from "react";
import Popover from "@ciceksepeti/cui-popover";

function Demo() {
  const targetRef = useRef();
  const [open, setOpen] = useState();

  return (
    <div>
      <button ref={targetRef} setOpen={() => setOpen(!open)}>
        Toggle Popover
      </button>
      {open && (
        <Popover targetRef={targetRef}>
          Aliqua consectetur non ut id nostrud sit ipsum consequat officia
        </Popover>
      )}
    </div>
  );
}
0.7.0

9 months ago

0.6.0

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago