All Questions

89
votes
8answers
54634 views

Material UI and Grid system

I'm playing a little bit with Material-UI. Are there any options for creating a grid layout (like in Bootstrap)? If not, what is the way to add this functionality? There is a GridList component but...
8
votes
3answers
2907 views

How to set focus to a materialUI TextField?

How can I set the focus on a material-ui TextField component? componentDidMount() { ReactDom.findDomNode(this.refs.myControl).focus() } I have tried above code, but it does not work :(
12
votes
1answers
8762 views

Module '...' resolves to a non-module entity and cannot be imported using this construct

I have a .tsx file in which I am trying to import a RaisedButton component from material-ui like so: import * as RaisedButton from 'material-ui/lib/raised-button' However, that gives me the error d...
3
votes
1answers
5343 views

Material UI inline style not working

In Material UI, I want to set borderRadius on my buttons. Passing the style attribute seem to work for FlatButton but not for RaisedButton. For RaisedButton, the borderRadius is applied to the paren...
27
votes
6answers
27295 views

How to use material-ui framework?

I'm planning to use Material-UI CSS framework (http://material-ui.com) in order to design front-end of a website, but I don't have any idea about how to use this framework. I'm not familiar a lot wi...
6
votes
1answers
2299 views

How to get Material-UI Drawer to 'squeeze' other content when open

If anyone is familiar with css and Material UI any help with this would be much appreciated. Basically I'm trying to implement a Material UI Drawer component which when opened doesn't just slide out o...
19
votes
1answers
5230 views

How to pass context down to the Enzyme mount method to test component which includes Material UI component?

I am trying to use mount from Enzyme to test my component in which a several Material UI component are nested. I get this error when running the test: TypeError: Cannot read property 'prepareStyles' ...
14
votes
6answers
11358 views

Material UI Menu using routes

I am toying with material-ui. I implemented LeftNav using routes, but I could not find a way to get IconMenu, or Menu working with links or routes. Anyone can point me to a good source / tutorial? The...
2
votes
2answers
996 views

How to create material-ui.js file?

I've followed the getting started guide and have the example running, but it seems to load all of the js components from the example lib folder as separate resources. How do I get it to build a single...
2
votes
1answers
272 views

Material Design Lite - Bottom Line in text field has a slight gap with colored line

I am trying to get Material Design Lite text field to work and I have an issue where the bottom colored line has a slight 3-4 px gap between the gray starting line. Any MDL text Field example I plug i...

Previous Next