-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from devping-kr/THKV-127
Feat[THKV-127]: Badge 컴포넌트 리디자인
- Loading branch information
Showing
6 changed files
with
132 additions
and
29 deletions.
There are no files selected for viewing
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,31 @@ | ||
import React from 'react'; | ||
import Badge from '@/components/common/Badge'; | ||
|
||
const page = () => { | ||
return ( | ||
<div className='flex h-full flex-col gap-4 bg-white-100 p-5'> | ||
<div className='flex gap-2'> | ||
<Badge text='text' textType='body' variant='default' size='s' /> | ||
<Badge text='text' textType='body' variant='outline' size='s' /> | ||
<Badge text='text' textType='body' variant='red' size='s' /> | ||
<Badge text='text' textType='body' variant='blue' size='s' /> | ||
<Badge text='text' textType='subtitle' variant='default' size='s' /> | ||
<Badge text='text' textType='subtitle' variant='outline' size='s' /> | ||
<Badge text='text' textType='subtitle' variant='red' size='s' /> | ||
<Badge text='text' textType='subtitle' variant='blue' size='s' /> | ||
</div> | ||
<div className='flex gap-2'> | ||
<Badge text='text' textType='body' variant='default' size='m' /> | ||
<Badge text='text' textType='body' variant='outline' size='m' /> | ||
<Badge text='text' textType='body' variant='red' size='m' /> | ||
<Badge text='text' textType='body' variant='blue' size='m' /> | ||
<Badge text='text' textType='subtitle' variant='default' size='m' /> | ||
<Badge text='text' textType='subtitle' variant='outline' size='m' /> | ||
<Badge text='text' textType='subtitle' variant='red' size='m' /> | ||
<Badge text='text' textType='subtitle' variant='blue' size='m' /> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default page; |
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 { cva } from 'class-variance-authority'; | ||
|
||
export const badgeVariants = cva( | ||
'flex justify-center items-center rounded-lg', | ||
{ | ||
variants: { | ||
variant: { | ||
default: 'bg-grey-50', | ||
outline: 'bg-white-100 border border-grey-100', | ||
blue: 'bg-blue-50', | ||
red: 'bg-red-50', | ||
}, | ||
size: { | ||
s: 'px-2 py-1', | ||
m: 'py-2 px-4', | ||
}, | ||
}, | ||
defaultVariants: { | ||
variant: 'default', | ||
size: 's', | ||
}, | ||
}, | ||
); |
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
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
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
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