0.6.0 • Published 2 months ago

@ciceksepeti/cui-popover v0.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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.6.0

2 months ago

0.5.0

3 months ago

0.4.0

3 months ago

0.3.0

4 months ago

0.2.0

4 months ago

0.1.0

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago