mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
[reactstrap] Add borderless type to Table
This commit is contained in:
1
types/reactstrap/lib/Table.d.ts
vendored
1
types/reactstrap/lib/Table.d.ts
vendored
@@ -6,6 +6,7 @@ export type TableProps<T = {}> = React.HTMLAttributes<HTMLElement> & {
|
||||
cssModule?: CSSModule;
|
||||
size?: string;
|
||||
bordered?: boolean;
|
||||
borderless?: boolean;
|
||||
striped?: boolean;
|
||||
inverse?: boolean;
|
||||
hover?: boolean;
|
||||
|
||||
@@ -4053,7 +4053,7 @@ function GenericPropExample() {
|
||||
);
|
||||
}
|
||||
|
||||
class Example118 extends React.Component {
|
||||
class Example119 extends React.Component<any, any> {
|
||||
render() {
|
||||
return (
|
||||
<Form>
|
||||
@@ -4140,3 +4140,40 @@ class Example118 extends React.Component {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class Example120 extends React.Component<any, any> {
|
||||
render() {
|
||||
return (
|
||||
<Table borderless>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>First Name</th>
|
||||
<th>Last Name</th>
|
||||
<th>Username</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">1</th>
|
||||
<td>Mark</td>
|
||||
<td>Otto</td>
|
||||
<td>@mdo</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">2</th>
|
||||
<td>Jacob</td>
|
||||
<td>Thornton</td>
|
||||
<td>@fat</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">3</th>
|
||||
<td>Larry</td>
|
||||
<td>the Bird</td>
|
||||
<td>@twitter</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</Table>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user