Skip to content

Commit

Permalink
fix: make label prop of Button component as ReactNode
Browse files Browse the repository at this point in the history
  • Loading branch information
bacali95 authored and mouracamila committed Apr 13, 2022
1 parent cc1beff commit 59cee65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Button/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentProps, FC } from 'react';
import { ComponentProps, FC, ReactNode } from 'react';
import classNames from 'classnames';

type Color = 'blue' | 'alternative' | 'dark' | 'light' | 'green' | 'red' | 'yellow' | 'purple';
Expand All @@ -17,6 +17,7 @@ type PositionInGroup = 'start' | 'middle' | 'end';
export type ButtonProps = Omit<ComponentProps<'button'>, 'color'> & {
pill?: boolean;
outline?: boolean;
label?: ReactNode;
color?: Color;
size?: Size;
icon?: FC<ComponentProps<'svg'>>;
Expand Down

0 comments on commit 59cee65

Please sign in to comment.