Skip to content

Commit

Permalink
fixing button link
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Grato committed Apr 2, 2024
1 parent dfce8c0 commit 31486f7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mozilla/lilypad-ui",
"version": "2.0.2",
"version": "2.0.4",
"description": "React Component UI Libray",
"scripts": {
"sb": "start-storybook -p 6006",
Expand Down
18 changes: 10 additions & 8 deletions src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ export type ButtonCategoriesT =

export type ButtonSizesT = 'small' | 'medium' | 'large';

export type LinkComponentT = React.ComponentType<{
href: string;
children: React.ReactNode;
className?: string;
id?: string;
onClick?: MouseEventHandler<HTMLAnchorElement>;
target?: string;
}>;

export type ButtonPropsT = {
active?: boolean;
id?: string;
Expand All @@ -33,14 +42,7 @@ export type ButtonPropsT = {
target?: string;
onClick?: MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;
classProp?: string;
LinkComponent?: React.ComponentType<{
href: string;
children: React.ReactNode;
className?: string;
id?: string;
onClick?: MouseEventHandler<HTMLAnchorElement>;
target?: string;
}>;
LinkComponent?: LinkComponentT;
};

type ButtonIconT = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default, type ButtonT, type ButtonCategoriesT, type ButtonSizesT } from './Button';
export { default, type ButtonT, type ButtonCategoriesT, type ButtonSizesT, type LinkComponentT } from './Button';

1 change: 1 addition & 0 deletions src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export {
type ButtonT,
type ButtonCategoriesT,
type ButtonSizesT,
type LinkComponentT,
} from './Button';
export { default as Checkbox } from './Checkbox';
export { default as CopyButton } from './CopyButton';
Expand Down

0 comments on commit 31486f7

Please sign in to comment.