marcio / react-skylight

A react component for modals and dialogs
http://marcio.github.io/react-skylight/
MIT License
571 stars 97 forks source link

Option to hide title and closebox #49

Closed pentool closed 7 years ago

pentool commented 8 years ago

Would be nice if there would be built-in options to hide the dialog title and the closebox. I am implementing my own title and closebox (which is located at the bottom) and so currently I have to specify a CSS override to hide these elements.

Having an option in the 'dialogstyles' or somewhere else to hide these elements would be helpful.

vibhas77 commented 7 years ago

Hey,

Please let me know how to switch off the title. I tried passing down null as title but it's still rendering a empty h2 tag which has some css affecting my dialog contents.

vibhas77 commented 7 years ago

Hey,

It was done. To hide title just pass prop titleStyle={{ display: 'none' }} into the skylight component.

marcio commented 7 years ago

v0.5.0 fix title option.