-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: relocate DropDownList atom from WEB
- Loading branch information
1 parent
3846d4c
commit e524c38
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
src/components/atoms/DropDownList/DropDownList.styles.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@import 'src/scss/mixins'; | ||
|
||
.drop-down-list, | ||
.container { | ||
@include flex-center; | ||
} | ||
|
||
.drop-down-list { | ||
width: 260px; | ||
height: 50px; | ||
border: 3px solid $color-base; | ||
margin: 15px; | ||
border-radius: 20px; | ||
} | ||
|
||
.header { | ||
font-size: 28px; | ||
color: $color-base; | ||
font-family: $font-inter; | ||
font-weight: 500; | ||
} | ||
|
||
.container { | ||
min-width: 260px; | ||
flex-flow: wrap; | ||
color: $color-background-black; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react' | ||
|
||
import cx from 'classnames' | ||
|
||
import css from './DropDownList.styles.module.scss' | ||
|
||
export type DropDownListProps = { | ||
className?: string | ||
headerClassName?: string | ||
containerClassName?: string | ||
header?: string | ||
} | ||
|
||
export const DropDownList = ({ className, header, headerClassName, containerClassName }: DropDownListProps) => { | ||
return ( | ||
<div className={cx(css.dropDownList, className)}> | ||
<div> | ||
<span className={cx(css.header, headerClassName)}>{header}</span> | ||
<div className={(css.container, containerClassName)}></div> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './DropDownList' |