diff --git a/.changeset/tough-toys-obey.md b/.changeset/tough-toys-obey.md new file mode 100644 index 0000000..87798a3 --- /dev/null +++ b/.changeset/tough-toys-obey.md @@ -0,0 +1,5 @@ +--- +"@openfun/cunningham-react": minor +--- + +Export Button props diff --git a/packages/react/src/components/Button/index.tsx b/packages/react/src/components/Button/index.tsx index f4a7edb..7ecf8dd 100644 --- a/packages/react/src/components/Button/index.tsx +++ b/packages/react/src/components/Button/index.tsx @@ -1,6 +1,6 @@ import React, { ButtonHTMLAttributes, forwardRef, ReactNode } from "react"; -interface Props extends ButtonHTMLAttributes { +export interface ButtonProps extends ButtonHTMLAttributes { color?: "primary" | "secondary" | "tertiary" | "danger"; size?: "medium" | "small" | "nano"; icon?: ReactNode; @@ -9,7 +9,7 @@ interface Props extends ButtonHTMLAttributes { fullWidth?: boolean; } -export const Button = forwardRef( +export const Button = forwardRef( ( { children,