This commit is contained in:
Arthur Belleville 2025-02-12 13:42:09 +01:00
parent 45ae828e12
commit 7afcfc7a86
No known key found for this signature in database
3 changed files with 1864 additions and 7 deletions

View file

@ -11,6 +11,7 @@
}, },
"dependencies": { "dependencies": {
"react": "^19.0.0", "react": "^19.0.0",
"react-aria-components": "^1.6.0",
"react-dom": "^19.0.0", "react-dom": "^19.0.0",
"tailwindcss-react-aria-components": "^1.2.0" "tailwindcss-react-aria-components": "^1.2.0"
}, },

File diff suppressed because it is too large Load diff

View file

@ -1,10 +1,20 @@
import { useState } from 'react' import { useState } from "react";
import reactLogo from './assets/react.svg' import reactLogo from "./assets/react.svg";
import viteLogo from '/vite.svg' import viteLogo from "/vite.svg";
import './App.css' import "./App.css";
import {
Button,
Label,
ListBox,
ListBoxItem,
Popover,
Select,
SelectValue,
} from "react-aria-components";
function App() { function App() {
const [count, setCount] = useState(0) const [count, setCount] = useState(0);
return ( return (
<> <>
@ -25,11 +35,25 @@ function App() {
Edit <code>src/App.tsx</code> and save to test HMR Edit <code>src/App.tsx</code> and save to test HMR
</p> </p>
</div> </div>
<Select>
<Label>Favorite Animal</Label>
<Button>
<SelectValue />
<span aria-hidden="true"></span>
</Button>
<Popover>
<ListBox>
<ListBoxItem>Cat</ListBoxItem>
<ListBoxItem>Dog</ListBoxItem>
<ListBoxItem>Kangaroo</ListBoxItem>
</ListBox>
</Popover>
</Select>
<p className="read-the-docs"> <p className="read-the-docs">
Click on the Vite and React logos to learn more Click on the Vite and React logos to learn more
</p> </p>
</> </>
) );
} }
export default App export default App;