mirror of https://github.com/sgoudham/carbon.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
450 B
JavaScript
20 lines
450 B
JavaScript
7 years ago
|
import React from 'react'
|
||
|
|
||
|
export default ({ fromLeft }) => (
|
||
|
<div style={{ left: fromLeft }}>
|
||
|
<div className="window-pointer" />
|
||
|
<style jsx>{`
|
||
|
.window-pointer {
|
||
|
width: 0px;
|
||
|
height: 0px;
|
||
|
border-style: solid;
|
||
|
border-width: 0 4px 5px 4px;
|
||
|
border-color: transparent transparent #fff transparent;
|
||
|
position: absolute;
|
||
|
top: -5px;
|
||
|
left: 15px;
|
||
|
}
|
||
|
`}</style>
|
||
|
</div>
|
||
|
)
|