1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-23 18:56:29 +02:00

feat: Tooltip

This commit is contained in:
Phuoc Nguyen
2022-09-20 18:29:40 +07:00
parent 603336d667
commit f5cc51bb9d
7 changed files with 161 additions and 192 deletions

View File

@@ -1,56 +0,0 @@
import * as React from 'react';
import Frame from '../../placeholders/Frame';
import Rectangle from '../../placeholders/Rectangle';
const Cover: React.FC<{}> = () => {
return (
<Frame>
<div
style={{
alignItems: 'center',
display: 'flex',
flexDirection: 'column',
height: '100%',
justifyContent: 'center',
padding: '8px',
}}
>
<div
style={{
position: 'relative',
width: '60%',
}}
>
<div
style={{
border: '4px solid transparent',
borderTopColor: '#00439e',
bottom: '100%',
height: 0,
left: '50%',
position: 'absolute',
transform: 'translate(-50%, 4px)',
width: 0,
}}
/>
<div
style={{
backgroundColor: '#00439e',
borderRadius: '2px',
bottom: '100%',
height: '24px',
left: '50%',
position: 'absolute',
transform: 'translate(-50%, -4px)',
width: '80px',
}}
/>
<Rectangle height={16} />
</div>
</div>
</Frame>
);
};
export default Cover;