mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-28 20:25:29 +08:00
chore: migrate to geist ui
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
## Extends Components
|
||||
|
||||
This is an example of **how to inherit components in `zeit-ui`**.
|
||||
This is an example of **how to inherit components in `geist-ui`**.
|
||||
|
||||
## Getting Started
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"name": "zeit-ui-react-extends-components",
|
||||
"name": "geist-ui-react-extends-components",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@zeit-ui/react": "latest",
|
||||
"@geist-ui/react": "latest",
|
||||
"react": "^16.12.0",
|
||||
"react-dom": "^16.12.0"
|
||||
},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import * as React from 'react'
|
||||
import MyInput from './my-input'
|
||||
import { ZeitProvider, CssBaseline, Page } from '@zeit-ui/react'
|
||||
import { GeistProvider, CssBaseline, Page } from '@geist-ui/react'
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
<ZeitProvider>
|
||||
<GeistProvider>
|
||||
<CssBaseline />
|
||||
<Page size="mini">
|
||||
<MyInput error="this is required" placeholder="my input" />
|
||||
</Page>
|
||||
</ZeitProvider>
|
||||
</GeistProvider>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { ReactElement } from 'react'
|
||||
import { Input, Spacer, Text } from '@zeit-ui/react'
|
||||
import { Input, Spacer, Text } from '@geist-ui/react'
|
||||
|
||||
type InputErrorType = {
|
||||
error?: string
|
||||
|
||||
Reference in New Issue
Block a user