/React-Table-Semantic-UI

Example of Semantic Table with sorting, footer and search bar

Primary LanguageJavaScript

React Table Semantic UI

Getting Started

React Component example of semantic-ui table featuring sorting, page footer and global search bar.

Features

  1. Search bar
  2. Column sorting
  3. Page footer

Example Demo

  1. [Netlify] (https://naughty-edison-ff64c1.netlify.app/)

Prerequisites

nodejs

Installing

yarn install

Running

yarn start

Simple Example Usage

<CustomTable
	data={[
		{
		 name: "jason",
		 lastName: "parra",
		 phone: "+1 (555) 333 4444",
		 email: "example1@gmail.com",
		 age: "20",
		},
		{
		 name: "Juan",
		 lastName: "Perez",
		 phone: "+1 (888) 500 2220",
		 email: "example2@gmail.com",
		 age: "35",
		},
	]}
	headers={["Nombre", "Apellido", "Teléfono", "Correo", "Edad"]}
	labels={["name", "lastName", "phone", "email", "age"]}
	searchQuery={search} //Optional
	pageRows={10} //Optional, 10 by default
	footerPages={10} //Optional, 10 by default
/>

Screenshots

alt text