1.1.6 • Published 1 year ago

cookie-design v1.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

cookie-ui

UI components base on react and typescript

Components List

  • Overlay
  • Popup
  • PullRefresh

Dev

pnpm start

Getting Started

pnpm add cookie-design

Usage

// example from Overlay
import React, { useState } from 'react'

import {Overlay} from 'cookie-design'

const Demo = () => {
	const [visible, setVisible] = useState<boolean>(false)

	const toggle = () => {
		setVisible(!visible)
	}

	return (
		<div>
			<h1>this is demo</h1>
			<button onClick={toggle}>toggle the overlay</button>

			<Overlay visible={visible} onClose={() => setVisible(false)} />
		</div>
	)
}

export default Demo

TODO

  • 垫片抽离
1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago