Skip to content

Commit

Permalink
feat: relocate DropDownList atom from WEB
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzhastin-Nikita authored and the-homeless-god committed May 26, 2022
1 parent 3846d4c commit e524c38
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/components/atoms/DropDownList/DropDownList.styles.module.scss
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;
}
23 changes: 23 additions & 0 deletions src/components/atoms/DropDownList/DropDownList.tsx
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>
)
}
1 change: 1 addition & 0 deletions src/components/atoms/DropDownList/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './DropDownList'

0 comments on commit e524c38

Please sign in to comment.