Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ components/GiftDetailsView/GiftDetailsView.tsx
components/GiftSuggestionCard/GiftSuggestionCard.tsx
components/GroupCard/GroupCard.tsx
components/ImageSelector/ImageSelector.tsx
components/Input/input.tsx
components/InviteCard/InviteCard.tsx
components/JourneyCard/JourneyCard.tsx
components/Label/label.tsx
Expand Down
15 changes: 13 additions & 2 deletions components/Input/Input.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
import * as React from 'react';
// Copyright (c) Gridiron Survivor.
// Licensed under the MIT License.

import { forwardRef, ComponentProps } from 'react';
import { cn } from '@/lib/utils';

const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<'input'>>(
/**
* A customizable Input Component
* @param {object} props - props for the Input
* @param {string} props.className - additonal CSS classes
* @param {string} props.type - type of button
* @returns {Input} - returns Input Component
*/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: remove the space between the JSDoc comments and the variable.

const Input = forwardRef<HTMLInputElement, ComponentProps<'input'>>(
({ className, type, ...props }, ref) => {
return (
<input
Expand All @@ -18,6 +28,7 @@ const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<'input'>>(
);
},
);

Input.displayName = 'Input';

export { Input };