We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/chrome-extension-boilerplate-react-vite/packages/ui/lib/components/Button.tsx
import type { ComponentPropsWithoutRef } from 'react'; import { cn } from '../utils'; import { Button as MuiButton } from '@mui/material'; export type ButtonProps = { theme?: 'light' | 'dark'; } & ComponentPropsWithoutRef<'button'>; export function Button({ theme, className, children }: ButtonProps) { return ( <MuiButton color="primary" className={cn( className, 'py-1 px-4 rounded shadow hover:scale-105', theme === 'light' ? 'bg-white text-black' : 'bg-black text-white', )} > {children} </MuiButton> ); }
The text was updated successfully, but these errors were encountered:
Thank you for your contribution. We will check and reply to you as soon as possible.
Sorry, something went wrong.
Jonghakseo
No branches or pull requests
/chrome-extension-boilerplate-react-vite/packages/ui/lib/components/Button.tsx
The text was updated successfully, but these errors were encountered: