1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-24 03:06:22 +02:00

feat: Custom radio button

This commit is contained in:
Phuoc Nguyen
2022-09-21 09:16:07 +07:00
parent 14e1965796
commit 203c6f299c
7 changed files with 122 additions and 257 deletions

View File

@@ -1,75 +0,0 @@
import * as React from 'react';
import Circle from '../../placeholders/Circle';
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={{
alignItems: 'center',
display: 'flex',
marginBottom: '8px',
width: '100%',
}}
>
<div
style={{
alignItems: 'center',
border: '1px solid #d1d5db',
borderRadius: '9999px',
display: 'flex',
justifyContent: 'center',
marginRight: '8px',
padding: '4px',
}}
>
<Circle backgroundColor="#00449E" />
</div>
<div style={{ flex: 1 }}>
<Rectangle />
</div>
</div>
<div
style={{
alignItems: 'center',
display: 'flex',
marginBottom: '8px',
width: '100%',
}}
>
<div
style={{
alignItems: 'center',
border: '1px solid #d1d5db',
borderRadius: '9999px',
display: 'flex',
justifyContent: 'center',
marginRight: '8px',
padding: '4px',
}}
>
<Circle backgroundColor="transparent" />
</div>
<div style={{ flex: 1 }}>
<Rectangle />
</div>
</div>
</div>
</Frame>
);
};
export default Cover;