Skip to content

Commit 99c0df7

Browse files
committed
Make input stories more different
1 parent 2fffa54 commit 99c0df7

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/stories/Input/Input.stories.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react-vite'
22
import { Input } from '../../components'
33
import { Label } from '../../components'
44
import { expect, within, userEvent } from 'storybook/test'
5-
import { SearchIcon, X as CloseIcon } from 'lucide-react'
5+
import { Rocket as LaunchIcon, Settings as SettingsIcon } from 'lucide-react'
66
import { SearchInput as SearchInputCmp } from '../../components/input'
77
import { useState } from 'react'
88

@@ -51,8 +51,8 @@ export const Default: Story = {
5151
export const WithManualIcon: Story = {
5252
render: () => (
5353
<div className="relative w-[300px]">
54-
<SearchIcon className="absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" />
55-
<Input type="search" placeholder="Search..." className="pl-8" />
54+
<SettingsIcon className="absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" />
55+
<Input placeholder="Search..." className="pl-8" />
5656
</div>
5757
),
5858
}
@@ -61,10 +61,9 @@ export const WithStartAndEndDecoration: Story = {
6161
render: () => (
6262
<div className="w-[300px]">
6363
<Input
64-
type="search"
6564
placeholder="Search..."
66-
startDecoration={<SearchIcon className="h-4 w-4 text-muted-foreground" />}
67-
endDecoration={<CloseIcon className="h-4 w-4 text-muted-foreground" />}
65+
startDecoration={<SettingsIcon className="h-4 w-4 text-muted-foreground" />}
66+
endDecoration={<LaunchIcon className="h-4 w-4 text-muted-foreground" />}
6867
/>
6968
</div>
7069
),

0 commit comments

Comments
 (0)