Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use the css file outside the node_modules folder ? #42

Open
fahamidev opened this issue Mar 11, 2018 · 2 comments
Open

How to use the css file outside the node_modules folder ? #42

fahamidev opened this issue Mar 11, 2018 · 2 comments

Comments

@fahamidev
Copy link

Hi.
How to use the basic.css file outside the node_modules folder ?

@soroushoracle
Copy link

same problem

@soroushoracle
Copy link

Use this css file. @thg303 gathered it from the one in the repository. don't forget to fix the extension to ".css"
evan-calender-style.css.txt

After adding styles, you need to present the styles to the DatePicker :

const styles= {
calendarContainer: 'calendarContainer',
dayPickerContainer: 'dayPickerContainer',
monthsList: 'monthsList',
daysOfWeek: 'daysOfWeek',
dayWrapper: 'dayWrapper',
selected: 'selected',
heading: 'heading'
}

then:

<DatePicker calendarStyles={styles}/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants