Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: migrate `Input` usages to Shadcn components (#45429)

Gildas Garciab554f5810657
diff --git a/apps/design-system/registry/default/example/data-table-demo.tsx b/apps/design-system/registry/default/example/data-table-demo.tsx
index f96c42db7ab..101cc81af01 100644
--- a/apps/design-system/registry/default/example/data-table-demo.tsx
+++ b/apps/design-system/registry/default/example/data-table-demo.tsx
@@ -24,7 +24,7 @@ import {
DropdownMenuItem,
DropdownMenuSeparator,
DropdownMenuTrigger,
- Input,
+ Input_Shadcn_ as Input,
Table,
TableBody,
TableCell,
@@ -196,7 +196,7 @@ export default function DataTableDemo() {
placeholder="Filter by email"
value={(table.getColumn('email')?.getFilterValue() as string) ?? ''}
onChange={(event) => table.getColumn('email')?.setFilterValue(event.target.value)}
- className="max-w-sm"
+ className="max-w-xs"
/>
<DropdownMenu>
<DropdownMenuTrigger asChild>
diff --git a/apps/design-system/registry/default/example/field-demo.tsx b/apps/design-system/registry/default/example/field-demo.tsx
index 09fe7a26a82..5f8f48dfda2 100644
--- a/apps/design-system/registry/default/example/field-demo.tsx
+++ b/apps/design-system/registry/default/example/field-demo.tsx
@@ -1,4 +1,4 @@
-import { Button, Checkbox, Input, Textarea } from 'ui'
+import { Button, Checkbox, Input_Shadcn_ as Input, Textarea } from 'ui'
import {
Field,
FieldDescription,
diff --git a/apps/design-system/registry/default/example/field-fieldset.tsx b/apps/design-system/registry/default/example/field-fieldset.tsx
index a91c1d4d86e..1b5f996c8ba 100644
--- a/apps/design-system/registry/default/example/field-fieldset.tsx
+++ b/apps/design-system/registry/default/example/field-fieldset.tsx
@@ -1,4 +1,4 @@
-import { Input } from 'ui'
+import { Input_Shadcn_ as Input } from 'ui'
import {
Field,
FieldDescription,
diff --git a/apps/design-system/registry/default/example/field-input.tsx b/apps/design-system/registry/default/example/field-input.tsx
index 17eee8e9b2b..56089935bf9 100644
--- a/apps/design-system/registry/default/example/field-input.tsx
+++ b/apps/design-system/registry/default/example/field-input.tsx
@@ -1,4 +1,4 @@
-import { Input } from 'ui'
+import { Input_Shadcn_ as Input } from 'ui'
import {
Field,
FieldDescription,
diff --git a/apps/design-system/registry/default/example/field-responsive.tsx b/apps/design-system/registry/default/example/field-responsive.tsx
index 1f00b1a2835..96ea6b17989 100644
--- a/apps/design-system/registry/default/example/field-responsive.tsx
+++ b/apps/design-system/registry/default/example/field-responsive.tsx
@@ -1,4 +1,4 @@
-import { Button, Input, Textarea } from 'ui'
+import { Button, Input_Shadcn_ as Input, Textarea } from 'ui'
import {
Field,
FieldContent,
diff --git a/apps/design-system/registry/default/example/input-form.tsx b/apps/design-system/registry/default/example/input-form.tsx
index d0d229600d6..537d632c9f8 100644
--- a/apps/design-system/registry/default/example/input-form.tsx
+++ b/apps/design-system/registry/default/example/input-form.tsx
@@ -12,7 +12,7 @@ import {
FormItem,
FormLabel,
FormMessage,
- Input,
+ Input_Shadcn_ as Input,
} from 'ui'
import { z } from 'zod'
diff --git a/apps/design-system/registry/default/example/page-layout-list.tsx b/apps/design-system/registry/default/example/page-layout-list.tsx
index f9448ebb9e4..0d0fd3c480c 100644
--- a/apps/design-system/registry/default/example/page-layout-list.tsx
+++ b/apps/design-system/registry/default/example/page-layout-list.tsx
@@ -8,7 +8,9 @@ import {
DropdownMenuItem,
DropdownMenuSeparator,
DropdownMenuTrigger,
- Input,
+ InputGroup,
+ InputGroupAddon,
+ InputGroupInput,
Table,
TableBody,
TableCell,
@@ -68,12 +70,16 @@ export default function PageLayoutList() {
<div className="w-full space-y-4">
<div className="flex flex-col lg:flex-row lg:items-center justify-between gap-2 flex-wrap">
<div className="flex flex-col lg:flex-row lg:items-center gap-2">
- <Input
- placeholder="Search for a function"
- size="tiny"
- icon={<Search />}
- className="w-full lg:w-52"
- />
+ <InputGroup>
+ <InputGroupInput
+ placeholder="Search for a function"
+ size="tiny"
+ className="w-full lg:w-52"
+ />
+ <InputGroupAddon>
+ <Search />
+ </InputGroupAddon>
+ </InputGroup>
</div>
<Button type="primary">Create a new function</Button>
</div>
diff --git a/apps/docs/components/AppleSecretGenerator/AppleSecretGenerator.tsx b/apps/docs/components/AppleSecretGenerator/AppleSecretGenerator.tsx
index 04936737eba..aeb45ed4bb8 100644
--- a/apps/docs/components/AppleSecretGenerator/AppleSecretGenerator.tsx
+++ b/apps/docs/components/AppleSecretGenerator/AppleSecretGenerator.tsx
@@ -1,6 +1,8 @@
import { useState } from 'react'
-import { Button, Input } from 'ui'
+import { Button, Input_Shadcn_ as Input } from 'ui'
import { Admonition } from 'ui-patterns/admonition'
+import { Input as DataInput } from 'ui-patterns/DataInputs/Input'
+import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'
function base64URL(value: string) {
return globalThis.btoa(value).replace(/[=]/g, '').replace(/[+]/g, '-').replace(/[\/]/g, '_')
@@ -105,30 +107,45 @@ const AppleSecretGenerator = () => {
return (
<div className="flex flex-col gap-3">
- <Input
+ <FormItemLayout
+ isReactForm={false}
+ layout="vertical"
label="Account ID"
+ description="Found in the upper-right corner of Apple Developer Center."
labelOptional="required"
- placeholder="Apple Developer account ID, 10 alphanumeric digits"
- descriptionText="Found in the upper-right corner of Apple Developer Center."
- value={teamID}
- onChange={(e) => setTeamID(e.target.value.trim())}
- />
- <Input
+ >
+ <Input
+ placeholder="Apple Developer account ID, 10 alphanumeric digits"
+ value={teamID}
+ onChange={(e) => setTeamID(e.target.value.trim())}
+ />
+ </FormItemLayout>
+ <FormItemLayout
+ isReactForm={false}
+ layout="vertical"
label="Service ID"
+ description="Found under Certificates, Identifiers & Profiles in Apple Developer Center."
labelOptional="required"
- placeholder="ID of the service, example: com.example.app.service"
- descriptionText="Found under Certificates, Identifiers & Profiles in Apple Developer Center."
- value={serviceID}
- onChange={(e) => setServiceID(e.target.value.trim())}
- />
- <Input
+ >
+ <Input
+ placeholder="ID of the service, example: com.example.app.service"
+ value={serviceID}
+ onChange={(e) => setServiceID(e.target.value.trim())}
+ />
+ </FormItemLayout>
+ <FormItemLayout
+ isReactForm={false}
+ layout="vertical"
label="Key ID"
+ description="If the file you select does not preserve the original name from Apple Developer Center, please enter the key ID."
labelOptional="(optional)"
- placeholder="Extracted from filename, AuthKey_XXXXXXXXXX.p8"
- descriptionText="If the file you select does not preserve the original name from Apple Developer Center, please enter the key ID."
- value={keyID}
- onChange={(e) => setKeyID(e.target.value.trim())}
- />
+ >
+ <Input
+ placeholder="Extracted from filename, AuthKey_XXXXXXXXXX.p8"
+ value={keyID}
+ onChange={(e) => setKeyID(e.target.value.trim())}
+ />
+ </FormItemLayout>
<div>
<input
type="file"
@@ -176,14 +193,14 @@ const AppleSecretGenerator = () => {
{secretKey && (
<>
<div style={{ height: '1rem' }} />
- <Input
+ <FormItemLayout
+ isReactForm={false}
+ layout="vertical"
label="Secret Key"
- value={secretKey}
- descriptionText={`Valid until: ${expiresAt}. Make sure you generate a new one before then!`}
- reveal
- copy
- size="medium"
- />
+ description={`Valid until: ${expiresAt}. Make sure you generate a new one before then!`}
+ >
+ <DataInput value={secretKey} copy reveal />
+ </FormItemLayout>
</>
)}
</div>
diff --git a/apps/docs/components/Extensions/Extensions.tsx b/apps/docs/components/Extensions/Extensions.tsx
index c9a3c201d5e..2d09841d758 100644
--- a/apps/docs/components/Extensions/Extensions.tsx
+++ b/apps/docs/components/Extensions/Extensions.tsx
@@ -2,7 +2,7 @@ import { X } from 'lucide-react'
import Link from 'next/link'
import React, { useState } from 'react'
import { extensions } from 'shared-data'
-import { Badge, Input } from 'ui'
+import { Badge, Input_Shadcn_ as Input } from 'ui'
import { GlassPanel } from 'ui-patterns/GlassPanel'
type Extension = {
diff --git a/apps/lite-studio/app/routes/projects.$ref.tsx b/apps/lite-studio/app/routes/projects.$ref.tsx
index 093092cc0f3..44e2be70efa 100644
--- a/apps/lite-studio/app/routes/projects.$ref.tsx
+++ b/apps/lite-studio/app/routes/projects.$ref.tsx
@@ -5,7 +5,7 @@ import {
Button,
Card,
Checkbox,
- Input,
+ Input_Shadcn_ as Input,
Label_Shadcn_ as Label,
Separator,
Switch,
diff --git a/apps/www/app/blog/authors/[author]/AuthorClient.tsx b/apps/www/app/blog/authors/[author]/AuthorClient.tsx
index 65359179887..5fbcfd57140 100644
--- a/apps/www/app/blog/authors/[author]/AuthorClient.tsx
+++ b/apps/www/app/blog/authors/[author]/AuthorClient.tsx
@@ -1,16 +1,15 @@
'use client'
-import { useState, useMemo } from 'react'
-import Link from 'next/link'
-import Image from 'next/image'
-import DefaultLayout from 'components/Layouts/Default'
+import { isBrowser, LOCAL_STORAGE_KEYS } from 'common'
import BlogGridItem from 'components/Blog/BlogGridItem'
import BlogListItem from 'components/Blog/BlogListItem'
-import { cn, Button, Input } from 'ui'
-import { LOCAL_STORAGE_KEYS, isBrowser } from 'common'
+import DefaultLayout from 'components/Layouts/Default'
import { AlignJustify, Grid, Search } from 'lucide-react'
-
+import Image from 'next/image'
+import Link from 'next/link'
+import { useMemo, useState } from 'react'
import type PostTypes from 'types/post'
+import { Button, cn, InputGroup, InputGroupAddon, InputGroupInput } from 'ui'
export type BlogView = 'list' | 'grid'
@@ -103,17 +102,19 @@ export default function AuthorClient({ author, authorId, blogs }: AuthorClientPr
<div className="container mx-auto px-4 py-4 md:py-8 xl:py-10 sm:px-16 xl:px-20">
<div className="flex flex-row items-center justify-between gap-2 mb-6">
<div className="flex-1 max-w-[280px]">
- <Input
- icon={<Search size="14" />}
- size="small"
- layout="vertical"
- autoComplete="off"
- type="search"
- placeholder="Search posts"
- value={searchTerm}
- onChange={(e) => setSearchTerm(e.target.value)}
- className="w-full"
- />
+ <InputGroup className="w-full">
+ <InputGroupInput
+ size="small"
+ autoComplete="off"
+ type="search"
+ placeholder="Search posts"
+ value={searchTerm}
+ onChange={(e) => setSearchTerm(e.target.value)}
+ />
+ <InputGroupAddon>
+ <Search />
+ </InputGroupAddon>
+ </InputGroup>
</div>
<Button
type="default"
diff --git a/apps/www/components/AIDemo/Panel.tsx b/apps/www/components/AIDemo/Panel.tsx
index 18bf8c91ce1..83d188f07c0 100644
--- a/apps/www/components/AIDemo/Panel.tsx
+++ b/apps/www/components/AIDemo/Panel.tsx
@@ -1,10 +1,10 @@
// components/AIDemoPanel.tsx
-import { useState, useEffect, useRef } from 'react'
-import { motion, AnimatePresence } from 'framer-motion'
-import { Button, Input } from 'ui'
-import { AiIconAnimation, cn } from 'ui'
-import errorGif from 'public/images/ai/error.gif'
+import { AnimatePresence, motion } from 'framer-motion'
import Image from 'next/image'
+import errorGif from 'public/images/ai/error.gif'
+import { useEffect, useRef, useState } from 'react'
+import { AiIconAnimation, cn, Input_Shadcn_ as Input } from 'ui'
+
import styles from './assistant.module.css'
interface DemoMessage {
diff --git a/apps/www/components/Blog/BlogFilters.tsx b/apps/www/components/Blog/BlogFilters.tsx
index 900075dcd5f..be9d7d7b478 100644
--- a/apps/www/components/Blog/BlogFilters.tsx
+++ b/apps/www/components/Blog/BlogFilters.tsx
@@ -13,7 +13,10 @@ import {
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
- Input,
+ InputGroup,
+ InputGroupAddon,
+ InputGroupButton,
+ InputGroupInput,
} from 'ui'
interface Props {
@@ -219,31 +222,31 @@ function BlogFilters({ onFilterChange, view, setView }: Props) {
{showSearchInput && (
<div className="w-full h-auto flex justify-end gap-2 items-stretch lg:max-w-[240px] xl:max-w-[280px]">
- <Input
- icon={<Search size="14" />}
- size="small"
- layout="vertical"
- autoComplete="off"
- type="search"
- placeholder="Search blog"
- value={searchTerm}
- onChange={handleSearchChange}
- className="w-full"
- actions={
- isMobile && (
- <Button
- type="link"
+ <InputGroup className="w-full">
+ <InputGroupInput
+ size="small"
+ autoComplete="off"
+ type="search"
+ placeholder="Search blog"
+ value={searchTerm}
+ onChange={handleSearchChange}
+ />
+ <InputGroupAddon>
+ <Search />
+ </InputGroupAddon>
+ {isMobile && (
+ <InputGroupAddon align="inline-end">
+ <InputGroupButton
onClick={() => {
setSearchTerm('')
setShowSearchInput(false)
}}
- className="text-foreground-light hover:text-foreground hover:bg-selection"
>
<CloseIcon size="14" />
- </Button>
- )
- }
- />
+ </InputGroupButton>
+ </InputGroupAddon>
+ )}
+ </InputGroup>
</div>
)}
<Button
diff --git a/apps/www/components/Events/EventsFilters.tsx b/apps/www/components/Events/EventsFilters.tsx
index 80fa2559924..e44b937dc91 100644
--- a/apps/www/components/Events/EventsFilters.tsx
+++ b/apps/www/components/Events/EventsFilters.tsx
@@ -15,7 +15,10 @@ import {
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
- Input,
+ InputGroup,
+ InputGroupAddon,
+ InputGroupButton,
+ InputGroupInput,
} from 'ui'
interface Props {
@@ -251,32 +254,31 @@ function EventFilters({ allEvents, setEvents, categories, onDemandEvents }: Prop
exit={{ opacity: 0, transition: { duration: 0.05 } }}
className="w-full h-[38px] flex justify-end gap-2 items-stretch lg:max-w-[240px] xl:max-w-[280px]"
>
- <Input
- inputRef={inputRef}
- icon={<Search size="14" />}
- size="small"
- layout="vertical"
- autoComplete="off"
- type="search"
- placeholder="Search event"
- value={searchTerm}
- onChange={handleSearchChange}
- className="w-full"
- actions={
- isMobile && (
- <Button
- type="link"
+ <InputGroup className="w-full">
+ <InputGroupInput
+ size="small"
+ autoComplete="off"
+ type="search"
+ placeholder="Search event"
+ value={searchTerm}
+ onChange={handleSearchChange}
+ />
+ <InputGroupAddon>
+ <Search />
+ </InputGroupAddon>
+ {isMobile && (
+ <InputGroupAddon align="inline-end">
+ <InputGroupButton
onClick={() => {
- setSearchTerm('')
+ handleSearchByText('')
setShowSearchInput(false)
}}
- className="text-foreground-light hover:text-foreground bg-control hover:bg-selection"
>
<CloseIcon size="14" />
- </Button>
- )
- }
- />
+ </InputGroupButton>
+ </InputGroupAddon>
+ )}
+ </InputGroup>
</motion.div>
)}
</div>
diff --git a/apps/www/pages/features.tsx b/apps/www/pages/features.tsx
index 1d0c0da80fa..bd6c0091161 100644
--- a/apps/www/pages/features.tsx
+++ b/apps/www/pages/features.tsx
@@ -9,7 +9,7 @@ import { NextSeo } from 'next-seo'
import { useRouter } from 'next/compat/router'
import Link from 'next/link'
import React, { useCallback, useEffect, useState } from 'react'
-import { Button, Checkbox, cn, Input } from 'ui'
+import { Button, Checkbox, cn, InputGroup, InputGroupAddon, InputGroupInput } from 'ui'
function FeaturesPage() {
const router = useRouter()
@@ -122,16 +122,19 @@ function FeaturesPage() {
<SectionContainer className="relative grid md:grid-cols-4 md:gap-4 pt-0!">
<div className="relative w-full h-full">
<div className="mb-4 flex flex-col gap-4 sticky top-20">
- <Input
- icon={<Search size="14" />}
- size="small"
- autoComplete="off"
- type="search"
- placeholder="Search features"
- value={searchTerm}
- onChange={handleSearchChange}
- className="w-full [&_input]:text-base [&_input]:md:text-sm [&_input]:leading-4!"
- />
+ <InputGroup className="w-full">
+ <InputGroupAddon>
+ <Search />
+ </InputGroupAddon>
+ <InputGroupInput
+ size="small"
+ autoComplete="off"
+ type="search"
+ placeholder="Search features"
+ value={searchTerm}
+ onChange={handleSearchChange}
+ />
+ </InputGroup>
<div className="hidden md:flex flex-col gap-2.5">
<div className="flex items-center gap-2 text-foreground-light hover:text-foreground cursor-pointer! hover:cursor-pointer! transition-colors">
<Checkbox
diff --git a/apps/www/pages/partners/integrations/index.tsx b/apps/www/pages/partners/integrations/index.tsx
index 1cc9b5c59be..feb22b2b0c2 100644
--- a/apps/www/pages/partners/integrations/index.tsx
+++ b/apps/www/pages/partners/integrations/index.tsx
@@ -1,15 +1,16 @@
-import { Loader, Search } from 'lucide-react'
-import { NextSeo } from 'next-seo'
-import { useRouter } from 'next/router'
-import { useEffect, useState } from 'react'
-import { Input } from 'ui'
-import { useDebounce } from 'use-debounce'
import DefaultLayout from '~/components/Layouts/Default'
import SectionContainer from '~/components/Layouts/SectionContainer'
import BecomeAPartner from '~/components/Partners/BecomeAPartner'
import PartnerLinkBox from '~/components/Partners/PartnerLinkBox'
import supabase from '~/lib/supabaseMisc'
import type { Partner } from '~/types/partners'
+import { Loader, Search } from 'lucide-react'
+import { NextSeo } from 'next-seo'
+import { useRouter } from 'next/router'
+import { useEffect, useState } from 'react'
+import { InputGroup, InputGroupAddon, InputGroupInput } from 'ui'
+import { useDebounce } from 'use-debounce'
+
import TileGrid from '../../../components/Partners/TileGrid'
export async function getStaticProps() {
@@ -115,22 +116,26 @@ function IntegrationPartnersPage(props: Props) {
{/* Horizontal link menu */}
<div className="space-y-6">
{/* Search Bar */}
-
- <Input
- size="small"
- icon={<Search />}
- placeholder="Search..."
- type="text"
- value={search}
- onChange={(e) => setSearch(e.target.value)}
- actions={
- isSearching && (
+ <InputGroup className="w-full">
+ <InputGroupInput
+ size="small"
+ autoComplete="off"
+ type="search"
+ placeholder="Search..."
+ value={search}
+ onChange={(e) => setSearch(e.target.value)}
+ />
+ <InputGroupAddon>
+ <Search />
+ </InputGroupAddon>
+ {isSearching && (
+ <InputGroupAddon align="inline-end">
<span className="mr-1 animate-spin text-white">
<Loader />
</span>
- )
- }
- />
+ </InputGroupAddon>
+ )}
+ </InputGroup>
<div className="hidden lg:block">
<div className="text-foreground-lighter mb-2 text-sm">Categories</div>
<div className="space-y-1">
diff --git a/packages/dev-tools/DevToolbar.tsx b/packages/dev-tools/DevToolbar.tsx
index fe18f3b4373..1c63322264e 100644
--- a/packages/dev-tools/DevToolbar.tsx
+++ b/packages/dev-tools/DevToolbar.tsx
@@ -15,7 +15,10 @@ import {
Badge,
Button,
cn,
- Input,
+ Input_Shadcn_ as Input,
+ InputGroup,
+ InputGroupAddon,
+ InputGroupInput,
Sheet,
SheetClose,
SheetContent,
@@ -433,15 +436,18 @@ export function DevToolbar({ extraTabs = [] }: { extraTabs?: ExtraTab[] }) {
<div className="flex-1 flex flex-col min-h-0 overflow-hidden">
{activeTab === 'events' && (
<div className="flex-1 overflow-hidden flex flex-col">
- <div className="flex items-center justify-between border-b shrink-0 px-6 py-2">
- <Input
- size="tiny"
- placeholder="Filter events..."
- value={eventFilter}
- onChange={(e) => setEventFilter(e.target.value)}
- icon={<Search size={14} className="text-foreground-lighter" />}
- className="flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 max-w-96"
- />
+ <div className="flex items-center justify-between border-b shrink-0 px-6 py-2 gap-2">
+ <InputGroup className="w-full max-w-sm">
+ <InputGroupInput
+ size="tiny"
+ placeholder="Filter events..."
+ value={eventFilter}
+ onChange={(e) => setEventFilter(e.target.value)}
+ />
+ <InputGroupAddon>
+ <Search size={14} className="text-foreground-lighter" />
+ </InputGroupAddon>
+ </InputGroup>
<Button
type="default"
onClick={() => setEvents([])}
diff --git a/packages/ui/src/components/InputOld/Input.css b/packages/ui/src/components/InputOld/Input.css
deleted file mode 100644
index da67b809b72..00000000000
--- a/packages/ui/src/components/InputOld/Input.css
+++ /dev/null
@@ -1,15 +0,0 @@
-.form-input:disabled {
- @apply bg-gray-100 cursor-not-allowed;
-}
-
-.form-input--small {
- @apply text-sm py-1;
-}
-
-.form-input--medium {
- @apply text-base;
-}
-
-.form-input--error {
- @apply border-red-500;
-}
diff --git a/packages/ui/src/components/InputOld/Input.js b/packages/ui/src/components/InputOld/Input.js
deleted file mode 100644
index 4d05fd3aa7d..00000000000
--- a/packages/ui/src/components/InputOld/Input.js
+++ /dev/null
@@ -1,47 +0,0 @@
-import PropTypes from 'prop-types'
-import React from 'react'
-
-import './Input.css'
-
-export const SIZES = ['small', 'medium']
-
-/**
- * @deprecated Use `import { Input_shadcn_ } from "ui"` with `type="number"` instead or ./ui-patterns/data-inputs/input with `type="number"`
- */
-const Input = ({
- className = '',
- type = 'text',
- size = 'medium',
- isError = false,
- children,
- ...props
-}) => {
- const classes = []
- if (size) {
- const sizeClasses = {
- small: 'form-input--small',
- medium: 'form-input--medium',
- }
- classes.push(sizeClasses[size])
- }
-
- if (isError) {
- classes.push('form-input--error')
- }
-
- return (
- <input
- type={type}
- className={`form-input border-solid ${classes.join(' ')} ${className}`}
- {...props}
- />
- )
-}
-
-Input.propTypes = {
- size: PropTypes.oneOf(SIZES),
- isError: PropTypes.bool,
- className: PropTypes.string,
-}
-
-export default Input
diff --git a/packages/ui/src/components/InputOld/Input.test.jsx b/packages/ui/src/components/InputOld/Input.test.jsx
deleted file mode 100644
index ae0df1ee953..00000000000
--- a/packages/ui/src/components/InputOld/Input.test.jsx
+++ /dev/null
@@ -1,18 +0,0 @@
-import { describe, it } from 'vitest'
-
-describe('#Input', () => {
- it.skip('should render input correctly', async () => {
- // render(<Input data-testid="form-input" />)
- // expect(screen.queryByTestId('form-input')).toBeInTheDocument()
- })
-
- it.skip('should have "form-input--error" class', () => {
- // render(<Input isError data-testid="form-input" />)
- // expect(screen.queryByTestId('form-input')).toHaveClass('form-input border-solid form-input--error')
- })
-
- // it.each(SIZES)('should have "form-input--%s" class', (size) => {
- // render(<Input size={size} data-testid="form-input" />)
- // expect(screen.queryByTestId('form-input')).toHaveClass(`form-input border-solid form-input--${size}`)
- // })
-})
diff --git a/packages/ui/src/components/InputOld/index.js b/packages/ui/src/components/InputOld/index.js
deleted file mode 100644
index ae5c54e5bfb..00000000000
--- a/packages/ui/src/components/InputOld/index.js
+++ /dev/null
@@ -1 +0,0 @@
-export { default as Input } from './Input'