summaryrefslogtreecommitdiffstats
path: root/src/components/atoms/buttons/button.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-04-15 14:38:54 +0200
committerArmand Philippot <git@armandphilippot.com>2022-04-15 14:38:54 +0200
commitb836f0a9f8b783e3328983ad087aa2b7b297b43a (patch)
treeb2ef8841a3fc94a1fe400e53597f9338e5391858 /src/components/atoms/buttons/button.tsx
parent0ff94252e27a80221e221c6159761f46aa111ac3 (diff)
chore: add a CommentForm component
Diffstat (limited to 'src/components/atoms/buttons/button.tsx')
-rw-r--r--src/components/atoms/buttons/button.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/components/atoms/buttons/button.tsx b/src/components/atoms/buttons/button.tsx
index b223046..545c5c5 100644
--- a/src/components/atoms/buttons/button.tsx
+++ b/src/components/atoms/buttons/button.tsx
@@ -9,7 +9,7 @@ export type ButtonProps = {
/**
* Button accessible label.
*/
- ariaLabel?: string;
+ 'aria-label'?: string;
/**
* Button state. Default: false.
*/
@@ -25,7 +25,7 @@ export type ButtonProps = {
/**
* Button shape. Default: rectangle.
*/
- shape?: 'circle' | 'rectangle' | 'square';
+ shape?: 'circle' | 'rectangle' | 'square' | 'initial';
/**
* Button type attribute. Default: button.
*/
@@ -39,7 +39,6 @@ export type ButtonProps = {
*/
const Button: FC<ButtonProps> = ({
className = '',
- ariaLabel,
children,
disabled = false,
kind = 'secondary',
@@ -55,7 +54,6 @@ const Button: FC<ButtonProps> = ({
type={type}
disabled={disabled}
className={`${styles.btn} ${kindClass} ${shapeClass} ${className}`}
- aria-label={ariaLabel}
{...props}
>
{children}