This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class SelectGuide extends Component { | |
state = { | |
value: 'Initial message', | |
text: 'Initial' | |
} | |
render() { | |
return ( | |
<React.Fragment> | |
<p> | |
The Select component requires that you also import the Option |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Usage: | |
<Input name="name" placeholder="Name" disabled /> | |
<Input | |
name="name" | |
autoComplete="off" | |
placeholder="Name (autocomplete disabled)" | |
/> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Usage: | |
<React.Fragment> | |
<p>Mouseover for more information</p> | |
<Infotip title="This is the Infotip title" /> | |
</React.Fragment> | |
Code: | |
export function Infotip(props) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class TextFieldType extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
textInput: "" | |
}; | |
} | |
render() { | |
const { textInput } = this.state; | |
return ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class TextareaFieldType extends Component { | |
constructor(props) { | |
super(props) | |
this.state = { | |
textInput: '' | |
} | |
} | |
render() { | |
const { textInput } = this.state | |
return ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class NumberFieldType extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
numberInput: "" | |
}; | |
} | |
render() { | |
const { numberInput } = this.state; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class UrlFieldType extends Component { | |
constructor(props) { | |
super(props) | |
this.state = { | |
textInput: '' | |
} | |
} | |
render() { | |
const { textInput } = this.state | |
return ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<CollapsibleCard header="Collapse Me" footer="this is a footer"> | |
<p>This is the body</p> | |
</CollapsibleCard> | |
<CollapsibleCard header="Default Collapsed" collapsed > | |
<h3>A whole component! look at that!</h3> | |
<GithubEmbed /> | |
</CollapsibleCard> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class CollapsibleCard extends Component { | |
static defaultProps = { | |
isCollapsed: false, | |
header: 'Header Required', | |
body: 'body required', | |
footer: '' | |
} | |
state = { | |
isCollapsed: false | |
} |