-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix styling, align the button without flex (#87)
- Loading branch information
1 parent
ba34d7b
commit d3df7a1
Showing
13 changed files
with
365 additions
and
564 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
import { CopyIcon } from 'lucide-react' | ||
import { Button } from './button' | ||
import { cn } from '@/features/common/utils.ts' | ||
|
||
type Props = { | ||
onClick: () => void | ||
className?: string | ||
} | ||
|
||
export const copyButtonLabel = 'Copy' | ||
|
||
export function CopyButton({ onClick }: Props) { | ||
export function CopyButton({ onClick, className }: Props) { | ||
return ( | ||
<Button onClick={onClick} variant="no-style" size="sm-icon" aria-label={copyButtonLabel} className="hover:bg-transparent"> | ||
<CopyIcon className="size-4" /> | ||
<Button onClick={onClick} variant="no-style" size="icon" aria-label={copyButtonLabel} className={cn('size-4', className)}> | ||
<CopyIcon size={'1rem'} /> | ||
</Button> | ||
) | ||
} |
Oops, something went wrong.