Skip to content

Commit

Permalink
Fixed typo Getting started (anchors -> anchor)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik committed Oct 8, 2019
1 parent cebace8 commit 713b26a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/docs/getting-started.mdx
Expand Up @@ -69,13 +69,13 @@ Let's create a very minimal pop-over component. In order for it to work we need

```jsx
import React from "react";
import { ToggleLayer, anchors } from "react-laag";
import { ToggleLayer, anchor } from "react-laag";

export default function SimplePopover() {
return (
<ToggleLayer
// provide placement config
placement={{ anchor: anchors.BOTTOM_CENTER }}
placement={{ anchor: anchor.BOTTOM_CENTER }}
// render-prop to render our layer
renderLayer={({ layerProps, isOpen }) =>
// only render on `isOpen`
Expand Down

0 comments on commit 713b26a

Please sign in to comment.