vhx / quartz-react

Quartz components using React
2 stars 1 forks source link

Feature/minor demo updates #66

Closed sebastiansandqvist closed 7 years ago

sebastiansandqvist commented 7 years ago

This PR is a mixed bag of minor updates to Quartz-React.

  1. It's now easier to create demo sections for a new component. You no longer need to know that sections accept a title prop.
  2. Docs updates in various places. Either small changes for consistent language/style or additional information. In the case of the avatar component, now that there is a PropTypeTable to display the available props and whether they're required and what their defaults are, the paragraphs that explained those things were no longer needed.
  3. Added a title attribute to the cells in the PropTypeTable. If the text gets truncated because the prop's name is long and your window is small, you can now hover over the cell to see the full text.
  4. Removed the slug function. By trying to automate turning a title, like "Radio Groups", into a url-friendly slug like "radiogroups", I added some complexity. It's much easier to just have a slug property in the Sections array in demo/index.jsx..