2.0.5 • Published 6 years ago

@simbuka/table v2.0.5

Weekly downloads
9
License
MIT
Repository
-
Last release
6 years ago

Table

Built With Stencil Netlify Status

Basic web component to easily style any table. Components do not have any logic like sorting, filtering or actual pagination, but it provides an upgraded look and feel to a default table by just prefixing smb- to all table tags.

Example

Features

  • Easy usage by just prefixing smb- to all table tags
  • Modern look and feel for any table
  • Customizability by changing a Tailwind configuration
  • Toggable overlay when table is empty or you are loading information
  • Simple pagination component
  • Sorting icons and event to hook into user actions

Installation

npm install --save @simbuka/table

Usage

<!-- Simple table with pagination -->
<smb-table>
	<smb-thead>
		<smb-tr>
			<smb-th>
				Family name
			</smb-th>
			<smb-th>
				Given name
			</smb-th>
			<smb-th>
				Birth name
			</smb-th>
		</smb-tr>
	</smb-thead>

	<smb-tbody>
		<smb-tr>
			<smb-td>
				Green
			</smb-td>
			<smb-td>
				Tom
			</smb-td>
			<smb-td>
				1972-12-07
			</smb-td>
		</smb-tr>
		<smb-tr>
			<smb-td>
				Cooper
			</smb-td>
			<smb-td>
				Martin
			</smb-td>
			<smb-td>
				1993-01-22
			</smb-td>
		</smb-tr>
	</smb-tbody>

	<smb-pagination slot="pagination">
		Showing 2 - 11 (11 results were found in total)
	</smb-pagination>
</smb-table>

You can find more examples at src/index.html

Components

Events

Imortant! Components are using TailwindCSS for styling. You must install it manually.

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago