chore: migrate to geist ui

This commit is contained in:
unix
2020-08-24 18:32:46 +08:00
parent c179794f36
commit 909a2963c0
176 changed files with 2188 additions and 2668 deletions

View File

@@ -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

View File

@@ -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"
},

View File

@@ -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>
)
}

View File

@@ -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