Skip to content

Commit

Permalink
added className and children to LinkButton props type
Browse files Browse the repository at this point in the history
  • Loading branch information
recondesigns committed Mar 3, 2024
1 parent bc3a33a commit e66b0c6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion components/Buttons/LinkButton/LinkButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ export type LinkButtonProps = {
* Url to be passed to the base anchor element.
*/
href: string;
/**
* String or element to be used as the label.
*/
children: React.ReactNode;
/**
* Applies classnames to the base element.
*/
className?: string;
/**
* Only pass analytics event label if you're href is to an external website
*/
Expand All @@ -24,7 +32,7 @@ export type LinkButtonProps = {
* Sets the button color theme.
*/
theme?: 'primary' | 'secondary';
} & React.ButtonHTMLAttributes<HTMLButtonElement>;
};

export default function LinkButton({
analyticsEventLabel,
Expand Down

0 comments on commit e66b0c6

Please sign in to comment.