Skip to content

Commit 239bb98

Browse files
committed
Init Select comp
1 parent f9aba22 commit 239bb98

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { Meta, StoryObj } from '@storybook/react-vite'
2+
3+
import { Select } from '.'
4+
5+
type Story = StoryObj<typeof meta>
6+
7+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
8+
const meta: Meta<typeof Select> = {
9+
title: 'Devfive/Select',
10+
component: Select,
11+
decorators: [
12+
(Story) => (
13+
<div style={{ padding: '10px' }}>
14+
<Story />
15+
</div>
16+
),
17+
],
18+
}
19+
20+
export const Default: Story = {
21+
args: {
22+
placeholder: 'Input text',
23+
},
24+
}
25+
26+
export default meta
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { render } from '@testing-library/react'
2+
import { describe, expect, it } from 'vitest'
3+
4+
import { Select } from '..'
5+
6+
describe('Select', () => {
7+
it('should render', () => {
8+
const { container } = render(<Select />)
9+
expect(container).toMatchSnapshot()
10+
})
11+
})
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function Select() {
2+
return <></>
3+
}

0 commit comments

Comments
 (0)