init tw
This commit is contained in:
		
							
								
								
									
										5
									
								
								stories/Introduce.mdx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								stories/Introduce.mdx
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
# twu
 | 
			
		||||
 | 
			
		||||
当使用mui的组件的时候,使用astro会有问题,所以很多的组件应该是纯原生的组件模块。
 | 
			
		||||
 | 
			
		||||
使用tailwindcss来做样式,使用原生的js来做交互。
 | 
			
		||||
							
								
								
									
										11
									
								
								stories/Page.stories.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								stories/Page.stories.tsx
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
import { Page } from './Page';
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  title: 'Page',
 | 
			
		||||
  component: Page,
 | 
			
		||||
};
 | 
			
		||||
export const Primary = () => (
 | 
			
		||||
  <div className='bg-red-500 p-4'>
 | 
			
		||||
    <Page />
 | 
			
		||||
  </div>
 | 
			
		||||
);
 | 
			
		||||
							
								
								
									
										3
									
								
								stories/Page.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								stories/Page.tsx
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
export const Page = () => {
 | 
			
		||||
  return <div>Page</div>;
 | 
			
		||||
};
 | 
			
		||||
							
								
								
									
										1
									
								
								stories/Test.mdx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								stories/Test.mdx
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
# Test
 | 
			
		||||
		Reference in New Issue
	
	Block a user