-
-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from pmndrs/feature/input
Feature/input
- Loading branch information
Showing
86 changed files
with
1,713 additions
and
507 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { Card } from '@/card' | ||
import { Input } from '@/input' | ||
import { Container } from '@react-three/uikit' | ||
import { BoxSelect } from '@react-three/uikit-lucide' | ||
import { useState } from 'react' | ||
|
||
export function InputsOnCard() { | ||
const [text, setText] = useState('') | ||
return ( | ||
<Card borderRadius={32} padding={16}> | ||
<Container flexDirection="row" gapColumn={16}> | ||
<Container flexDirection="column" alignItems="stretch" gapRow={16} width={300}> | ||
<Input value={text} onValueChange={setText} variant="rect" placeholder="Placeholder" /> | ||
<Input value={text} onValueChange={setText} variant="rect" placeholder="Placeholder" prefix={<BoxSelect />} /> | ||
<Input value={text} onValueChange={setText} variant="rect" placeholder="Placeholder" disabled /> | ||
<Input | ||
value={text} | ||
onValueChange={setText} | ||
variant="rect" | ||
placeholder="Placeholder" | ||
disabled | ||
prefix={<BoxSelect />} | ||
/> | ||
</Container> | ||
<Container flexDirection="column" alignItems="stretch" gapRow={16} width={300}> | ||
<Input value={text} onValueChange={setText} variant="pill" placeholder="Placeholder" /> | ||
<Input value={text} onValueChange={setText} variant="pill" placeholder="Placeholder" prefix={<BoxSelect />} /> | ||
<Input value={text} onValueChange={setText} variant="pill" placeholder="Placeholder" disabled /> | ||
<Input | ||
value={text} | ||
onValueChange={setText} | ||
variant="pill" | ||
placeholder="Placeholder" | ||
disabled | ||
prefix={<BoxSelect />} | ||
/> | ||
</Container> | ||
</Container> | ||
</Card> | ||
) | ||
} |
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,13 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Document</title> | ||
</head> | ||
<body style="margin: 0; overscroll-behavior: none"> | ||
<script type="module" src="./src/index.tsx"></script> | ||
<div id="root"></div> | ||
</body> | ||
</html> |
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,19 @@ | ||
{ | ||
"type": "module", | ||
"dependencies": { | ||
"@react-three/drei": "^9.96.1", | ||
"@react-three/fiber": "^8.15.13", | ||
"@react-three/postprocessing": "^2.16.0", | ||
"@react-three/uikit": "workspace:^", | ||
"@react-three/uikit-lucide": "workspace:^", | ||
"@types/three": "^0.161.0", | ||
"r3f-perf": "^7.1.2", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"three": "^0.161.0" | ||
}, | ||
"scripts": { | ||
"dev": "vite --host", | ||
"build": "vite build" | ||
} | ||
} |
Oops, something went wrong.