Tutorialsplane

UIkit Table


UIkit Table– Class uk-tableis used to create table in UIkit framework. You can use predefined classes to create beautiful tables in UIkit framework. Here in this article we are going to explain how you can create tables in UIkit with different-different styles.


UIkit Table Example

Add class uk-table to table. Here is simple example of UIkit table. –

Example:

Name Email
Jhon jhon@example.com
Kelly kelly@example.com

Try it »

If you run the above example it will produce the output something like this-

Add Row Divider

Add class uk-table-divider to add divider between table rows.

Example:

Name Email
Jhon jhon@example.com
Kelly kelly@example.com

Try it »

If you run the above example it will produce output something like this-

Striped Row

Add class uk-table-striped to create striped table row.

Example:

Name Email
Jhon jhon@example.com
Kelly kelly@example.com

Try it »

If you run the above example it will produce the output something like this-

Hover Effect

If you want to add the hover effect on table rows add class uk-table-hover to table.

Example:

Name Email
Jhon jhon@example.com
Kelly kelly@example.com

Try it »

Responsive table

To make table responsive add class uk-overflow-auto to div wrapper and add table inside it. Table will be automatically responsive on all devices.

Example:

<div class="uk-overflow-auto">
<table class="uk-table">
	<thead>
		<tr>
			<th>Name</th>
			<th>Email</th>
		</tr>
	</thead>
	<tfoot>
		<tr>
			<td>Jhon</td>
			<td>jhon@example.com</td>
		</tr>
	</tfoot>
	<tbody>
		<tr>
			<td>Kelly</td>
			<td>kelly@example.com</td>
		</tr>
	</tbody>
</table>
</div>

Uikit Tutorial

Component