Material-ui-pickers: @material-ui/icons not supported

Created on 18 Jun 2018  路  4Comments  路  Source: mui-org/material-ui-pickers

Environment

| Tech | Version |
|---------------------|---------|
| material-ui-pickers | 1.0.0-rc.10 |
| @material-ui/core | 1.2.1 |
| @material-ui/icons | 1.1.0 |
| React | 16.4.1 |
| Browser | Chrome |
| Platform | OS X 10.13.5 |

Steps to reproduce

  1. Copy and paste DateTimePicker example

Expected behavior


Tabs should be icons

Actual behavior


Tabs have cutoff text

Live example

image

Most helpful comment

I was just about to come back and close this as I did read the docs again. I think you should show in the examples using @material-ui/icons

import DateRange from '@material-ui/icons/DateRange'
import AccessTime from '@material-ui/icons/AccessTime'

<DateTimePickerComponent
 dateRangeIcon={<DateRange />}
 timeIcon={<AccessTime />}
  //... other props
/>

All 4 comments

Please read installation guide one more timr

I was just about to come back and close this as I did read the docs again. I think you should show in the examples using @material-ui/icons

import DateRange from '@material-ui/icons/DateRange'
import AccessTime from '@material-ui/icons/AccessTime'

<DateTimePickerComponent
 dateRangeIcon={<DateRange />}
 timeIcon={<AccessTime />}
  //... other props
/>

Yes, you are right I will add an example with svg icons in the installation guide

Just what I was looking for, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

killjoy2013 picture killjoy2013  路  3Comments

aditya81070 picture aditya81070  路  3Comments

basselAhmed picture basselAhmed  路  3Comments

StevenRasmussen picture StevenRasmussen  路  3Comments

danmce picture danmce  路  3Comments