[reactstrap] Add borderless type to Table

This commit is contained in:
Flosch
2018-05-11 18:08:10 +02:00
parent c77275b10c
commit ccbd12e286
2 changed files with 39 additions and 1 deletions

View File

@@ -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;

View File

@@ -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>
);
}
}