feat(ui): added icon button component, updated secondary button style and added select to barrel export

This commit is contained in:
akhilmhdh
2023-01-23 22:10:50 +05:30
parent ad504fa84e
commit f859bf528e
7 changed files with 205 additions and 9 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ type Props = {
isLoading?: boolean;
};
type SelectProps = SelectPrimitive.SelectProps & Props;
export type SelectProps = SelectPrimitive.SelectProps & Props;
export const Select = forwardRef<HTMLButtonElement, SelectProps>(
({ children, placeholder, className, isLoading, ...props }, ref): JSX.Element => {
@@ -64,7 +64,7 @@ export const Select = forwardRef<HTMLButtonElement, SelectProps>(
Select.displayName = 'Select';
type SelectItemProps = Omit<SelectPrimitive.SelectItemProps, 'disabled'> & {
export type SelectItemProps = Omit<SelectPrimitive.SelectItemProps, 'disabled'> & {
isDisabled?: boolean;
isSelected?: boolean;
};