Skip to content

Commit

Permalink
docs(@aws-amplify/ui-components): remove ui-preview tag
Browse files Browse the repository at this point in the history
  • Loading branch information
wlee221 authored Mar 5, 2021
1 parent d2e1e16 commit c43d4d0
Showing 1 changed file with 95 additions and 85 deletions.
180 changes: 95 additions & 85 deletions packages/amplify-ui-components/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

## Frameworks

| Framework | Package | Version | READMEs | Quick Start |
| ------------------ | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------: | ----------------------------------- |
| Framework | Package | Version | READMEs | Quick Start |
| ------------------ | ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | :--------------------------------------------: | ----------------------------------- |
| **React** | [`@aws-amplify/ui-react`](https://www.npmjs.com/package/@aws-amplify/ui-react) | [![version](https://img.shields.io/npm/v/@aws-amplify/ui-react/latest.svg)](https://www.npmjs.com/package/@aws-amplify/ui-react) | [`README.md`](../amplify-ui-react/README.md) | [`React`](#react) |
| **Angular** | [`@aws-amplify/ui-angular`](https://www.npmjs.com/package/@aws-amplify/ui-angular) | [![version](https://img.shields.io/npm/v/@aws-amplify/ui-angular/latest.svg)](https://www.npmjs.com/package/@aws-amplify/ui-angular) | [`README.md`](../amplify-ui-angular/README.md) | [`Angular`](#angular) |
| **Vue** | [`@aws-amplify/ui-vue`](https://www.npmjs.com/package/@aws-amplify/ui-vue) | [![version](https://img.shields.io/npm/v/@aws-amplify/ui-vue/latest.svg)](https://www.npmjs.com/package/@aws-amplify/ui-vue) | [`README.md`](../amplify-ui-vue/README.md) | [`Vue`](#vue) |
Expand All @@ -32,7 +32,7 @@ In this Quick Start guide you will set up an Authenticator component and the clo
##### Installation

```
yarn add aws-amplify@ui-preview @aws-amplify/ui-react@ui-preview
yarn add aws-amplify @aws-amplify/ui-react
```

##### Usage
Expand All @@ -46,12 +46,12 @@ import awsconfig from './aws-exports';
Amplify.configure(awsconfig);

const App = () => {
<AmplifyAuthenticator>
<div>
My App
<AmplifySignOut />
</div>
</AmplifyAuthenticator>;
<AmplifyAuthenticator>
<div>
My App
<AmplifySignOut />
</div>
</AmplifyAuthenticator>;
};
```

Expand All @@ -60,7 +60,7 @@ const App = () => {
##### Installation

```
yarn add aws-amplify@ui-preview @aws-amplify/ui-angular@ui-preview
yarn add aws-amplify @aws-amplify/ui-angular
```

##### Usage
Expand All @@ -79,10 +79,10 @@ import awsconfig from './aws-exports';
Amplify.configure(awsconfig);

@NgModule({
declarations: [AppComponent],
imports: [AmplifyUIAngularModule, BrowserModule],
providers: [],
bootstrap: [AppComponent],
declarations: [AppComponent],
imports: [AmplifyUIAngularModule, BrowserModule],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
```
Expand All @@ -91,10 +91,10 @@ _app.component.html_

```html
<amplify-authenticator>
<div>
My App
<amplify-sign-out></amplify-sign-out>
</div>
<div>
My App
<amplify-sign-out></amplify-sign-out>
</div>
</amplify-authenticator>
```

Expand All @@ -103,7 +103,7 @@ _app.component.html_
##### Installation

```
yarn add aws-amplify@ui-preview @aws-amplify/ui-vue@ui-preview
yarn add aws-amplify @aws-amplify/ui-vue
```

##### Usage
Expand All @@ -120,20 +120,20 @@ import awsconfig from './aws-exports';
Amplify.configure(awsconfig);

new Vue({
render: h => h(App),
render: h => h(App),
}).$mount('#app');
```

_App.vue_

```html
<template>
<amplify-authenticator>
<div>
My App
<amplify-sign-out></amplify-sign-out>
</div>
</amplify-authenticator>
<amplify-authenticator>
<div>
My App
<amplify-sign-out></amplify-sign-out>
</div>
</amplify-authenticator>
</template>
```

Expand All @@ -142,36 +142,42 @@ _App.vue_
##### Installation

```
yarn add aws-amplify@ui-preview @aws-amplify/ui-components@ui-preview
yarn add aws-amplify @aws-amplify/ui-components
```

##### Usage

_app.js_

```js
import '@aws-amplify/ui-vue';
import Amplify from 'aws-amplify';
import awsconfig from './aws-exports';

Amplify.configure(awsconfig);
import {
applyPolyfills,
defineCustomElements,
} from '@aws-amplify/ui-components/loader';

applyPolyfills().then(() => {
defineCustomElements(window);
});
```

_index.html_

```html
<!DOCTYPE html>
<html lang="en">
<body>
<amplify-authenticator>
<div>
My App
<amplify-sign-out></amplify-sign-out>
</div>
</amplify-authenticator>

<script src="app.js"></script>
</body>
<body>
<amplify-authenticator>
<div>
My App
<amplify-sign-out></amplify-sign-out>
</div>
</amplify-authenticator>

<script src="app.js"></script>
</body>
</html>
```

Expand Down Expand Up @@ -231,18 +237,22 @@ Amplify UI Components use [slots](https://developer.mozilla.org/en-US/docs/Web/H
#### React

```js
import { AmplifyAuthenticator, AmplifySignIn, AmplifySignUp } from '@aws-amplify/ui-react';
import {
AmplifyAuthenticator,
AmplifySignIn,
AmplifySignUp,
} from '@aws-amplify/ui-react';

const App = () => {
<AmplifyAuthenticator>
<AmplifySignIn headerText="My Custom Sign In Header" slot="sign-in" />
<AmplifySignUp headerText="My Custom Sign Up Header" slot="sign-up" />

<div>
My App
<AmplifySignOut />
</div>
</AmplifyAuthenticator>;
<AmplifyAuthenticator>
<AmplifySignIn headerText="My Custom Sign In Header" slot="sign-in" />
<AmplifySignUp headerText="My Custom Sign Up Header" slot="sign-up" />

<div>
My App
<AmplifySignOut />
</div>
</AmplifyAuthenticator>;
};
```

Expand All @@ -263,41 +273,41 @@ export default withAuthenticator(App, { /* ...amplifyAuthenticatorSettings */ })

```html
<amplify-authenticator>
<amplify-sign-in header-text="My Custom Sign In Header" slot="sign-in" />
<amplify-sign-up header-text="My Custom Sign In Header" slot="sign-up" />
<amplify-sign-in header-text="My Custom Sign In Header" slot="sign-in" />
<amplify-sign-up header-text="My Custom Sign In Header" slot="sign-up" />

<div>
My App
<amplify-sign-out></amplify-sign-out>
</div>
<div>
My App
<amplify-sign-out></amplify-sign-out>
</div>
</amplify-authenticator>
```

#### Vue

```html
<amplify-authenticator>
<amplify-sign-in header-text="My Custom Sign In Header" slot="sign-in" />
<amplify-sign-up header-text="My Custom Sign In Header" slot="sign-up" />
<amplify-sign-in header-text="My Custom Sign In Header" slot="sign-in" />
<amplify-sign-up header-text="My Custom Sign In Header" slot="sign-up" />

<div>
My App
<amplify-sign-out></amplify-sign-out>
</div>
<div>
My App
<amplify-sign-out></amplify-sign-out>
</div>
</amplify-authenticator>
```

#### Web Components

```html
<amplify-authenticator>
<amplify-sign-in header-text="My Custom Sign In Header" slot="sign-in" />
<amplify-sign-up header-text="My Custom Sign In Header" slot="sign-up" />
<amplify-sign-in header-text="My Custom Sign In Header" slot="sign-in" />
<amplify-sign-up header-text="My Custom Sign In Header" slot="sign-up" />

<div>
My App
<amplify-sign-out></amplify-sign-out>
</div>
<div>
My App
<amplify-sign-out></amplify-sign-out>
</div>
</amplify-authenticator>
```

Expand Down Expand Up @@ -375,21 +385,21 @@ The `federated` prop implements the `FederatedConfig`:

```ts
export interface FederatedConfig {
auth0Config?: {
audience?: string;
clientID: string;
domain: string;
responseType: string;
redirectUri: string;
returnTo?: string;
scope?: string;
};
amazonClientId?: string;
facebookAppId?: string;
googleClientId?: string;
oauthConfig?: {
[key: string]: any;
};
auth0Config?: {
audience?: string;
clientID: string;
domain: string;
responseType: string;
redirectUri: string;
returnTo?: string;
scope?: string;
};
amazonClientId?: string;
facebookAppId?: string;
googleClientId?: string;
oauthConfig?: {
[key: string]: any;
};
}
```

Expand Down Expand Up @@ -426,7 +436,7 @@ const federated = {

```diff
- yarn add aws-amplify-react
+ yarn add @aws-amplify/ui-react@ui-preview
+ yarn add @aws-amplify/ui-react
```

##### Usage
Expand Down Expand Up @@ -469,7 +479,7 @@ export default withAuthenticator(App);

```diff
- yarn add aws-amplify-angular
+ yarn add @aws-amplify/ui-angular@ui-preview
+ yarn add @aws-amplify/ui-angular
```

##### Usage
Expand Down Expand Up @@ -504,7 +514,7 @@ export class AppModule {}

```diff
- yarn add aws-amplify-vue
+ yarn add @aws-amplify/ui-vue@ui-preview
+ yarn add @aws-amplify/ui-vue
```

##### Usage
Expand Down

0 comments on commit c43d4d0

Please sign in to comment.