-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b6c9bf
commit ec495a6
Showing
41 changed files
with
1,657 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
"@aws-amplify/ui-react-storage": minor | ||
"@aws-amplify/ui-react": minor | ||
"@aws-amplify/ui": minor | ||
--- | ||
|
||
feat(react): DropZone component | ||
|
||
```jsx | ||
export default function DefaultDropZoneExample() { | ||
const [files, setFiles] = React.useState([]); | ||
return ( | ||
<> | ||
<DropZone | ||
onDropComplete={({ files }) => { | ||
setFiles(files); | ||
}} | ||
> | ||
Drag images here | ||
</DropZone> | ||
{files.map((file) => ( | ||
<Text key={file.name}>{file.name}</Text> | ||
))} | ||
</> | ||
); | ||
} | ||
``` | ||
|
||
The DropZone part of the StorageManager connected component has been updated to use the new DropZone component too! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.