Skip to content

Commit e524c38

Browse files
Uzhastin-Nikitathe-homeless-god
authored andcommitted
feat: relocate DropDownList atom from WEB
1 parent 3846d4c commit e524c38

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@import 'src/scss/mixins';
2+
3+
.drop-down-list,
4+
.container {
5+
@include flex-center;
6+
}
7+
8+
.drop-down-list {
9+
width: 260px;
10+
height: 50px;
11+
border: 3px solid $color-base;
12+
margin: 15px;
13+
border-radius: 20px;
14+
}
15+
16+
.header {
17+
font-size: 28px;
18+
color: $color-base;
19+
font-family: $font-inter;
20+
font-weight: 500;
21+
}
22+
23+
.container {
24+
min-width: 260px;
25+
flex-flow: wrap;
26+
color: $color-background-black;
27+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import React from 'react'
2+
3+
import cx from 'classnames'
4+
5+
import css from './DropDownList.styles.module.scss'
6+
7+
export type DropDownListProps = {
8+
className?: string
9+
headerClassName?: string
10+
containerClassName?: string
11+
header?: string
12+
}
13+
14+
export const DropDownList = ({ className, header, headerClassName, containerClassName }: DropDownListProps) => {
15+
return (
16+
<div className={cx(css.dropDownList, className)}>
17+
<div>
18+
<span className={cx(css.header, headerClassName)}>{header}</span>
19+
<div className={(css.container, containerClassName)}></div>
20+
</div>
21+
</div>
22+
)
23+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './DropDownList'

0 commit comments

Comments
 (0)