Comments (3)
Hello guys!
There is an update on this topic from my side. I have been working on a version of that component on my own to support SSR and dynamic ranges. You can check it out here 🤓 Unfortunately, it currently doesn't support autofocus. I don't think it is a big technical issue, but the first attempt I gave it didn't work and I don't have enough time to fix that, because for us it is good enough. Also, the API is a bit different to MUI, but feels quite similar other than solid-select which might seam quite limiting. 😉
Have a nice day! 👋
BierDav
from suid.
Another option would be to just import the Select Component on the client side only
Example:
import { Box, FormControl, InputLabel, MenuItem } from "@suid/material";
import { createSignal } from "solid-js";
import { clientOnly } from 'solid-start/islands';
const Select = clientOnly(() => import('@suid/material/Select'));
export default function StateSelect() {
const [age, setAge] = createSignal("");
const handleChange = (event) => {
setAge(event.target.value);
};
return (
<Box sx={{ minWidth: 120 }}>
<FormControl fullWidth>
<InputLabel id="demo-simple-select-label">Age</InputLabel>
<Select
labelId="demo-simple-select-label"
id="demo-simple-select"
value={age()}
label="Age"
onChange={handleChange}
>
<MenuItem value={10}>Ten</MenuItem>
<MenuItem value={20}>Twenty</MenuItem>
<MenuItem value={30}>Thirty</MenuItem>
</Select>
</FormControl>
</Box>
);
}
from suid.
Yeah, but with that we don't support ssr and instead disable it
from suid.
Related Issues (20)
- FormControl using incorrect variant?
- Buildless option HOT 4
- Vite plugin package peer dependency update considering Vite 5.X.X HOT 3
- Select border/label overlap with empty MenuItem value HOT 1
- Virtual data tables HOT 1
- Import SUID in Astro throws Error: Unexpected token 'export' HOT 1
- Drawer variant persistent? HOT 2
- Problem with Astro integration HOT 1
- Rollup-Error in latest version of `solid-start` HOT 1
- Why is the theme style change invalid? HOT 1
- Add autocomplete feature HOT 2
- solid-start: Uncaught (in promise) TypeError: containerInfo is undefined HOT 2
- Solid Ui Component support use: directives or other directives or not ? HOT 1
- Is this library still being maintained? HOT 1
- None of your code examples for Selects work... at all HOT 1
- Automatic dark theme is not working HOT 1
- Random LinearProgress animation even if value={0}
- ViewCompact and ViewComfy are swapped in @suid/icons-material
- TablePagination is missing HOT 1
- Checkbox doesn't display label
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from suid.