diff --git a/CHANGELOG.md b/CHANGELOG.md index aeeddafc20..3b63ffcd8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - Move `Flex` styles to `base` theme @kuzhelov ([#1206](https://github.com/stardust-ui/react/pull/1206)) - Add file video icon on `Icon` component @luzhon ([#1205](https://github.com/stardust-ui/react/pull/1250)) - Export `call-missed-line` icon in Teams theme @96andrei ([#1203](https://github.com/stardust-ui/react/pull/1203)) +- Add `pointing` prop to `Popup` ([#1198](https://github.com/stardust-ui/react/pull/1198)) ## [v0.27.0](https://github.com/stardust-ui/react/tree/v0.27.0) (2019-04-10) diff --git a/docs/src/examples/components/Popup/Types/PopupExamplePointing.shorthand.tsx b/docs/src/examples/components/Popup/Types/PopupExamplePointing.shorthand.tsx new file mode 100644 index 0000000000..9283c99c19 --- /dev/null +++ b/docs/src/examples/components/Popup/Types/PopupExamplePointing.shorthand.tsx @@ -0,0 +1,57 @@ +import * as React from 'react' +import { Button, Grid, Popup } from '@stardust-ui/react' + +const PopupWithButton = props => ( + +

A popup with a pointer.

+

+ Is aligned to {props.align}. +

+ + ), + }} + pointing + position={props.position} + trigger={ +