Coder Social home page Coder Social logo

Comments (5)

heath-freenome avatar heath-freenome commented on May 16, 2024

@dowling-john Can you provide more information, such as which theme are you using?

from react-jsonschema-form.

dowling-john avatar dowling-john commented on May 16, 2024

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.

heath-freenome avatar heath-freenome commented on May 16, 2024

@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.

dowling-john avatar dowling-john commented on May 16, 2024

After looking at this for a while it would seem that this is the issue

#1987

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.

heath-freenome avatar heath-freenome commented on May 16, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.