score:4
no
see https://github.com/aws-amplify/docs/issues/2484
in short, someone is making a feature request to:
- support theme object as aws-amplify-react does.
the example they give that is not working for the newer @aws-amplify/ui-react
release is:
const mytheme = {
formsection: { 'display': 'none' }
}
// define class app { ... }
export default withauthenticator(app, { theme: mytheme })
from what i understand, the new amplify components do not take styling through js objects, only css as of now, given the issue that's still open.
p.s. probably not want you want to hear, but fwiw i pulled up a codesandbox and tried it myself and could not get it to work. i also attempted the solution here customise aws amplify ui? and it seems like the new components from @aws-amplify/ui-react
don't accept styles as aws-amplify-react
does.
Source: stackoverflow.com
Related Query
- How to override Amplify theming with Material UI
- How override material ui style with hooks
- How to override the width of a TextField component with react MUI?
- How to test material ui autocomplete with react testing library
- How to fix `TypeError: document.createRange is not a function` error while testing material ui popper with react-testing-library?
- How to override Material UI .MuiContainer-maxWidthLg?
- How to build forms with material ui in react correctly
- How can i make an avatar chooser with Material UI
- How to use data attributes with Material Design React?
- How to use react-hook-form with ant design or material UI
- How to use Material UI custom theme in React with Typescript
- How to test Material UI Select Component with React Testing Library
- How can I use CSS @media for responsive with makeStyles on Reactjs Material UI?
- How to use onchange with autocomplete material ui?
- how to override react-bootstrap with custom css file
- How to add custom colors name on Material UI with TypeScript?
- How to override .MuiTypography-body1 class in Material UI
- how to achieve multi line label with react Material UI
- How to override style of nested Material UI component from the ancestors?
- How do I use Autocomplete component of Material UI with InputBase?
- Material UI v1 with Redux - How to export
- How can I use two transitions with material ui?
- How to disable past dates from today date with Material ui reactjs?
- How to return the user's status within AWS's user pool using Amplify with Javascript?
- How to use React Router with Material UI Drawer to change content on click?
- How to use button collapse with material ui accordion?
- How to use material community icons with react-native-vector-icons
- How to override Box created by TabPanel in Material UI
- How to use Material UI custom variants in React with Typescript
- How to use Theme in material UI with React + Next.js?
More Query from same tag
- How to do server call on browser close/tab close in react
- How to get min values among properties inside an array of objects?
- Event handler function not updating, state undefined inside function scope
- validation in react hook form?
- React | How can i display my image in React?
- How do I use React Modal with a map function?
- Fetch returns promise
- Type incoherence between the register() function of react-hook-form and the native input types
- Show component if 'true', else show other component (in React)
- React App goes blank after importing React-Router-Dom
- DropZone Does not pick up CSV files on Windows 10 and ChromeOS with MIME "text/csv" filter set
- TypeScript material-ui allow props not defined in @types
- Leaflet in React.js - "dragend" event exception: "TypeError: Cannot read property 'call' of undefined"
- Using APIs in a React Template
- Where to Initialize Semantic UI Dropdown in React
- Redux store immutable pattern for nested data in array?
- react application not rendering react component in Express
- Cookies not saved on mobile
- How to access state within a property of a React class component?
- Display WeekDay with 3 characters instread of only 2 in react-day-picker
- React Router v4 Redirect unit test
- React useEffect renders change on 2nd click?
- React i18n break lines in JSON String
- Relative path of static files express/react
- convert data:image/webp;base64 to image
- Redux observable with axios in react
- Uploading image to Strapi /upload with axios and React
- Functional Component data not re-rendering on update in Framer Preview
- Ternary operator doesn't work as expected
- How to scroll to bottom after an element appears (using react-slidedown)