rcdexta / react-event-timeline

A responsive event timeline in React.js
https://rcdexta.com/react-event-timeline
MIT License
536 stars 56 forks source link

Styling the card view #11

Closed hashwin closed 7 years ago

hashwin commented 7 years ago

Hi, nice project.

I would like to style the card header, looks like it is hardcoded into here: https://github.com/rcdexta/react-event-timeline/blob/master/components/TimelineEvent.js#L43

Would be nice to have a new prop to be able to style this.

Thanks!

rcdexta commented 7 years ago

It's possible to override the card container's style by using the style prop. Have added more examples to the storybook: https://rcdexta.github.io/react-event-timeline/?selectedKind=Timeline&selectedStory=Card%20Appearance&full=0&down=0&left=1&panelRight=0

hashwin commented 7 years ago

Hi @rcdexta , this still does not allow me to style the color of the card header.

rcdexta commented 7 years ago

@hashwin there you go: https://rcdexta.github.io/react-event-timeline/?selectedKind=Timeline&selectedStory=Card%20Appearance&full=0&down=0&left=1&panelRight=0

hashwin commented 7 years ago

Awesome! 👍 Much appreciated