Skip to content

Commit

Permalink
✨Feat: CloseButton, PrevButton
Browse files Browse the repository at this point in the history
  • Loading branch information
shlee9999 committed Nov 21, 2024
1 parent b0cecfe commit 94cece2
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/Button/CloseButton/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { IconBaseProps } from 'react-icons'
import * as S from './styles'

type CloseButtonProps = IconBaseProps
export default function CloseButton({ ...rest }: CloseButtonProps) {
return <S.CloseButton cursor='pointer' {...rest} />
}
10 changes: 10 additions & 0 deletions src/components/Button/CloseButton/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { styled } from 'styled-components'
import { MdClose } from 'react-icons/md'

export const CloseButton = styled(MdClose)`
position: absolute;
width: 28px;
height: 28px;
top: 12px;
right: 20px;
`
8 changes: 8 additions & 0 deletions src/components/Button/PrevButton/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { IconBaseProps } from 'react-icons'
import * as S from './styles'

type PrevButtonProps = IconBaseProps

export default function PrevButton({ ...rest }: PrevButtonProps) {
return <S.PrevButton {...rest}>PrevButton</S.PrevButton>
}
10 changes: 10 additions & 0 deletions src/components/Button/PrevButton/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { styled } from 'styled-components'
import { GrPrevious } from 'react-icons/gr'

export const PrevButton = styled(GrPrevious)`
position: absolute;
left: 20px;
top: 14px;
width: 28px;
height: 28px;
`

0 comments on commit 94cece2

Please sign in to comment.