refactor(front): rename Props interface to ButtonProps for clarity and consistency in Button component

This commit is contained in:
keven1024
2025-05-14 16:04:26 +08:00
parent fb1aea321d
commit 406539f281

View File

@@ -4,13 +4,13 @@ import { cn } from '@/lib/utils'
import { Primitive, type PrimitiveProps } from 'reka-ui'
import { type ButtonVariants, buttonVariants } from '.'
interface Props extends PrimitiveProps {
export interface ButtonProps extends PrimitiveProps {
variant?: ButtonVariants['variant']
size?: ButtonVariants['size']
class?: HTMLAttributes['class']
}
const props = withDefaults(defineProps<Props>(), {
const props = withDefaults(defineProps<ButtonProps>(), {
as: 'button',
})
</script>