mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-16 12:33:18 +00:00
add new component
This commit is contained in:
0
src/components/component/component.module.scss
Normal file
0
src/components/component/component.module.scss
Normal file
16
src/components/component/component.stories.tsx
Normal file
16
src/components/component/component.stories.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { Meta, StoryObj } from '@storybook/react'
|
||||
|
||||
import { Component } from './'
|
||||
|
||||
const meta = {
|
||||
component: Component,
|
||||
tags: ['autodocs'],
|
||||
title: 'Components/Component',
|
||||
} satisfies Meta<typeof Component>
|
||||
|
||||
export default meta
|
||||
type Story = StoryObj<typeof meta>
|
||||
|
||||
export const Default: Story = {
|
||||
args: {},
|
||||
}
|
||||
6
src/components/component/component.tsx
Normal file
6
src/components/component/component.tsx
Normal file
@@ -0,0 +1,6 @@
|
||||
import s from './component.module.scss'
|
||||
export type ComponentProps = {}
|
||||
|
||||
export const Component = ({}: ComponentProps) => {
|
||||
return <div>Component</div>
|
||||
}
|
||||
1
src/components/component/index.ts
Normal file
1
src/components/component/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './component'
|
||||
@@ -1,3 +1,4 @@
|
||||
export * from './component'
|
||||
export * from './ui'
|
||||
export * from './auth'
|
||||
export * from './profile'
|
||||
|
||||
Reference in New Issue
Block a user