Comments (5)
@dowling-john Can you provide more information, such as which theme are you using?
from react-jsonschema-form.
Ok so here is my theme definition
`export const Theme = createTheme({
palette: {
primary: {
main: '#077D8DFF',
},
secondary: {
main: '#077D8DFF',
},
},
typography: {
fontFamily: [
'Quicksand'
].join(','),
},
spacing: 6,
});
`
I am using https://mui.com/core/ to render the components, I am sure that this is because the elements gerated are not the same as the ones in mui core, so what I would like to do is manipulate the borders on all input elements, and would like to klnow how to define borders in the theme
thanks
from react-jsonschema-form.
@dowling-john Well, first of all the @rjsf/mui theme is using @mui/material out of the box with no other modifications. It seems like if you followed the theming guide you should be able to affect the look and feel of the components.
from react-jsonschema-form.
After looking at this for a while it would seem that this is the issue
It would seem that by default an OutlinedInput component is used rather then just a normal Input component, is there a way that I can defind it to use the Iput componet rather then the Outlined one ?
from react-jsonschema-form.
@dowling-john The Mui theme, out of the box uses the outlined variant because that is the default that @mui/material
uses. You should be able to use the theming guide to provide a different theme for material-ui... You can also override the BaseInputTemplate
to change the variant per the second example here. Again, there is nothing specific to RJSF that is blocking you from changing the look and feel of material-ui via their usual mechanisms.
from react-jsonschema-form.
Related Issues (20)
- Duplicate widgets when rending OpenAPI's discriminated unions
- Usage Example is missing Form import
- Widgets unusable under Antd v5 using a dark theme (wrong ConfigProvider context passed down) HOT 3
- How to figure out the changed `formData` object property from inside `onChange` callback? HOT 4
- Warning: React does not recognize the `errorSchema` and Invalid DOM property `autocomplete`. HOT 1
- DOCUMENTATION Issue: Wrong method signature? HOT 1
- Schema defines standalone checkbox as mandatory, but asterisk is not rendered. HOT 2
- Adding required field in nested if/then/else not working correctly HOT 2
- FormData is not received based on schema properties HOT 1
- Select bug when multiple oneOf are nested HOT 2
- How can I cite this? HOT 6
- RJSF anyOf customization HOT 3
- Validation error when multiple $ref references point to a single definition HOT 4
- not working about validation HOT 3
- Passing ui options down to array items HOT 3
- MUI number input label UI issue with non-numeric input HOT 1
- Publish v6 release candidate with support for Bootstrap 5 HOT 1
- Can not replace "integer" widget HOT 4
- Omit Extra Data not behaving as expected on submit for allOf (if then) schemas along with additionalProperties set to false blocking form submission HOT 1
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 react-jsonschema-form.