This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
7 changed files
with
127 additions
and
45 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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
|
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,30 @@ | ||
import Button from '@turistikrota/ui/button' | ||
import Modal from '@turistikrota/ui/modal' | ||
import { useState } from 'react' | ||
|
||
export default function ModalExample() { | ||
const [open, setOpen] = useState(false) | ||
return ( | ||
<> | ||
<Modal open={open} onClose={() => setOpen(false)}> | ||
<Modal.Head> | ||
<Modal.Head.Title>Modal title</Modal.Head.Title> | ||
<Modal.Head.Subtitle>Modal subtitle</Modal.Head.Subtitle> | ||
<Modal.Head.CloseButton title='Close Modal' onClose={() => setOpen(false)} /> | ||
</Modal.Head> | ||
<Modal.Body> | ||
<div className='flex flex-col space-y-4'> | ||
<span className='text-gray-300'>Hello</span> | ||
<span className='text-gray-300'>Hello</span> | ||
<span className='text-gray-300'>Hello</span> | ||
<span className='text-gray-300'>Hello</span> | ||
</div> | ||
</Modal.Body> | ||
<Modal.Footer> | ||
<Button block={false}>The button</Button> | ||
</Modal.Footer> | ||
</Modal> | ||
<Button onClick={() => setOpen(true)}>Open Modal</Button> | ||
</> | ||
) | ||
} |
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