mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
feat: updates
This commit is contained in:
parent
fb21405bf9
commit
1b05297885
46 changed files with 234 additions and 114 deletions
|
|
@ -23,19 +23,12 @@ const Button = ({
|
|||
iconColor?: Color
|
||||
isSkelton?: boolean
|
||||
}) => {
|
||||
const shape =
|
||||
Array.isArray(children) && children.length === 1
|
||||
? Shape.Square
|
||||
: Shape.Default
|
||||
|
||||
return (
|
||||
<button
|
||||
onClick={onClick}
|
||||
className={classNames(
|
||||
'btn-pressed-animation flex cursor-default items-center rounded-lg text-lg font-semibold',
|
||||
'btn-pressed-animation flex cursor-default items-center rounded-lg px-4 py-1.5 text-lg font-medium',
|
||||
{
|
||||
'px-4 py-1.5': shape === Shape.Default,
|
||||
'px-3 py-1.5': shape === Shape.Square,
|
||||
'bg-brand-100 dark:bg-brand-600': color === Color.Primary,
|
||||
'text-brand-500 dark:text-white': iconColor === Color.Primary,
|
||||
'bg-gray-100 dark:bg-gray-700': color === Color.Gray,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue