Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Add Modal Component #105

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Add Modal Component #105

wants to merge 4 commits into from

Conversation

adastra-react
Copy link

Description:

Hi there,

I've created a new Modal component using Next.js, TypeScript, and Styled Components. The modal is triggered by clicking a button and can be closed by clicking outside of it or using the close button. It also traps focus inside the modal when it is open, and restores focus to the previously focused element when it is closed.

I've also included a Loom video explaining the code and the changes that I've made, which you can find here: Code Walkthrough

Let me know if you have any questions or concerns!

Thanks, Suneil England

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant