import all0 from "/src/fragments/ui/web/installation.mdx"; ## Usage ```jsx import React from "react"; import { Amplify } from "aws-amplify"; import { AmplifyS3Text } from "@aws-amplify/ui-react"; import awsconfig from "./aws-exports"; Amplify.configure(awsconfig); const App = () => ; ``` import all1 from "/src/fragments/ui/angular/configure-module.mdx"; _app.component.html_ ```html ``` import all3 from "/src/fragments/ui/vue/configure-app.mdx"; _App.vue_ ```html ``` ```css amplify-s3-text { --container-color: black; --text-color: deepskyblue; } ``` ## Use Cases ### Getting files from protected access level Protected files from S3 bucket can be accessed by anyone other than the owner by using the `identityId` of the owner. ```jsx const App = () => ( ); ``` _app.component.html_ ```html ``` _App.vue_ ```html ``` ## Migration To migrate from using the `aws-amplify-` library to the latest `@aws-amplify/ui-` library use the steps below: import all4 from "/src/fragments/ui/web/installation-diff.mdx"; ### Usage ```diff - import { S3Text } from 'aws-amplify-react'; + import { AmplifyS3Text } from '@aws-amplify/ui-react'; const App = () => ( + - ); ``` import all5 from "/src/fragments/ui/angular/configure-module-diff.mdx"; _app.component.html_ ```diff + - ``` import all7 from "/src/fragments/ui/vue/configure-app-diff.mdx"; _App.vue_ ```diff ``` If you were using `S3Text` with `picker` property enabled, please see the documentation for [`S3TextPicker`](/ui/storage/s3-text-picker).