fix: Added fullWidth property on button components to set them as full width
Approved-by: Matilda Landström
This commit is contained in:
@@ -6,7 +6,8 @@ import { cx, type VariantProps } from 'class-variance-authority'
|
||||
import type { HTMLAttributes } from 'react'
|
||||
|
||||
interface FakeButtonProps
|
||||
extends Omit<HTMLAttributes<HTMLSpanElement>, 'color'>,
|
||||
extends
|
||||
Omit<HTMLAttributes<HTMLSpanElement>, 'color'>,
|
||||
VariantProps<typeof variants> {
|
||||
isDisabled?: boolean
|
||||
}
|
||||
@@ -16,6 +17,7 @@ export function FakeButton({
|
||||
color,
|
||||
size,
|
||||
typography,
|
||||
fullWidth,
|
||||
children,
|
||||
className,
|
||||
isHovered,
|
||||
@@ -27,6 +29,7 @@ export function FakeButton({
|
||||
size,
|
||||
variant,
|
||||
typography,
|
||||
fullWidth,
|
||||
isHovered,
|
||||
className,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user