mirror of
https://github.com/vercel/commerce.git
synced 2025-07-03 11:41:21 +00:00
34 lines
861 B
TypeScript
34 lines
861 B
TypeScript
|
|
import { useState } from 'react'
|
|
import {CarouselCommon, LabelCommon, Layout, QuanittyInput } from 'src/components/common'
|
|
const dataTest = [{
|
|
text:1
|
|
},{
|
|
text:2
|
|
},{
|
|
text:3
|
|
},{
|
|
text:4
|
|
},{
|
|
text:5
|
|
},{
|
|
text:6
|
|
}]
|
|
const test = (props:any)=><div className="h-64 bg-yellow-300">{props.text}</div>
|
|
export default function Home() {
|
|
return (
|
|
<>
|
|
<CarouselCommon data={dataTest} Component={test} itemKey="test"/>
|
|
<QuanittyInput size ="default" min={5} max={10} initValue={3}/>
|
|
<QuanittyInput size ="small" min={3} step={10}/>
|
|
<LabelCommon>SEEFOOT</LabelCommon>
|
|
<LabelCommon type="discount">-15%</LabelCommon>
|
|
<LabelCommon type="waiting">Waitting</LabelCommon>
|
|
<LabelCommon type="delivering" >delivering</LabelCommon>
|
|
<LabelCommon type="delivered">delivered</LabelCommon>
|
|
</>
|
|
)
|
|
}
|
|
|
|
Home.Layout = Layout
|