updating UI documentation

Summary:
adding documentation for more of our UI components.

Deleted some unused components, which were not working anyways.

Reviewed By: jknoxville

Differential Revision: D12896109

fbshipit-source-id: 959c7864240883869ad67283f80a3c189b94bf00
This commit is contained in:
Daniel Büchele
2018-11-05 03:10:27 -08:00
committed by Facebook Github Bot
parent 640dee6645
commit 95a7298d21
27 changed files with 116 additions and 135 deletions

View File

@@ -7,12 +7,19 @@
import {Component} from 'react';
/**
* Dropdown to select from a list of options
*/
export default class Select extends Component<{
/** Additional className added to the element */
className?: string,
/** Additional className added to the element */
options: {
[key: string]: string,
},
/** Callback when the selected value changes */
onChange: (key: string) => void,
/** Selected key */
selected?: ?string,
}> {
onChange = (event: Object) => {