mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
feat(reactstrap): writing some tests
This commit is contained in:
@@ -3221,3 +3221,66 @@ function Example() {
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function Example104() {
|
||||
const props = {
|
||||
className: 'my-input',
|
||||
style: {
|
||||
borderColor: 'black',
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<FormGroup
|
||||
className="some-class"
|
||||
aria-labelledby="label"
|
||||
>
|
||||
<Label sm={3} id="label">
|
||||
Label
|
||||
</Label>
|
||||
|
||||
<Col className="col-12" sm={9}>
|
||||
<Input type="text" size="lg" {...props} />
|
||||
</Col>
|
||||
</FormGroup>
|
||||
);
|
||||
}
|
||||
|
||||
function Example105() {
|
||||
return (
|
||||
<Dropdown
|
||||
className="main-nav-avatar"
|
||||
isOpen={true}
|
||||
aria-labelledby="menu"
|
||||
>
|
||||
<a
|
||||
href="javascript:void(0)"
|
||||
id="menu"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false"
|
||||
>
|
||||
Toggle
|
||||
</a>
|
||||
|
||||
<DropdownMenu right>
|
||||
<div className="d-block">
|
||||
Item
|
||||
</div>
|
||||
</DropdownMenu>
|
||||
</Dropdown>
|
||||
);
|
||||
}
|
||||
|
||||
function Example106() {
|
||||
return (
|
||||
<Nav vertical>
|
||||
<NavLink
|
||||
className="toggle-drawer"
|
||||
href="#"
|
||||
>
|
||||
Details
|
||||
</NavLink>
|
||||
</Nav>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user