material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[Docs] Hide internal props from documentation

Open heetvachhani opened this issue 10 years ago • 4 comments

@mbrookes suggested to make a list of components that have public child component so that I can hide props by adding @ignore tag to them and close this issue properly.

Here's the list:

  • Card
    • [x] CardActions (N/A)
    • [x] CardHeader (N/A)
    • [x] CardMedia (N/A)
    • [x] CardText (N/A)
    • [x] CardTitle (N/A)
  • GridList
    • [x] GridTile (N/A)
  • List
    • [x] ListItem (N/A)
  • RadioButton
    • [x] RadioButton (#3247)
  • Table
    • [x] TableRow (#3589)
    • [x] TableRowColumn (#3589)
    • [x] TableHeader (#3589)
    • [x] TableHeaderColumn (#3589)
    • [x] TableBody (#3589)
    • [x] TableFooter (N/A)
  • Tabs
    • [x] Tab (#3589)
  • [x] TextField (#3247)
  • Menu
    • [x] SubMenu (N/A)
    • [x] MenuItem (#3589)
  • Toolbar
    • [x] ToolbarGroup (N/A)
    • [x] ToolbarSeparator (N/A)
    • [x] ToolbarTitle (N/A)

Feel free to add more if I forgot something :sweat_smile:

Reference #3191

heetvachhani avatar Mar 03 '16 22:03 heetvachhani

Just looking at TextField again - those aren't publicly documented subcomponents, so @ignore has no purpose, but no harm done.

mbrookes avatar Mar 04 '16 10:03 mbrookes

I've updated the list to cover all the components with public sub-components. I've reviewed Table, and added some props I think should be hidded (given the current implementation). Please check the carefully before @ignoreing! :sweat_smile:

I've have double-checked RadioButton & Tabs - they look fine.

I will let you inspect the rest. :+1:

mbrookes avatar Mar 04 '16 11:03 mbrookes

Thanks @mbrookes for updating the list :+1:

heetvachhani avatar Mar 04 '16 13:03 heetvachhani

Card docs say:

actAsExpander bool false Whether a click on this card component expands the card. Can be set on any child of the Card component.

Please reinstate it anywhere it's @ignored

Same for expandable and showExpandableButton. .

mbrookes avatar Mar 04 '16 21:03 mbrookes