1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-24 11:16:27 +02:00

feat: Popover arrow

This commit is contained in:
Phuoc Nguyen
2022-09-20 16:41:57 +07:00
parent 59c302c11e
commit 8469e1bcc2
7 changed files with 382 additions and 448 deletions

View File

@@ -1,47 +0,0 @@
import * as React from 'react';
import Frame from '../../placeholders/Frame';
const Cover: React.FC<{}> = () => {
return (
<Frame>
<div
style={{
alignItems: 'center',
display: 'flex',
flexDirection: 'column',
height: '100%',
justifyContent: 'center',
padding: '8px',
}}
>
<div
style={{
border: '1px solid rgba(0, 0, 0, 0.3)',
borderRadius: '4px',
height: '60%',
position: 'relative',
width: '100%',
}}
>
<div
style={{
backgroundColor: 'var(--current-background-color, #FFF)',
borderBottom: '1px solid rgba(0, 0, 0, 0.3)',
borderRight: '1px solid rgba(0, 0, 0, 0.3)',
height: '10px',
left: '10px',
position: 'absolute',
top: 0,
transform: 'translate(50%, -50%) rotate(225deg)',
width: '10px',
zIndex: 0,
}}
/>
</div>
</div>
</Frame>
);
};
export default Cover;