An open API service indexing awesome lists of open source software.

https://github.com/darkpurple141/table

A POC of an AK Table
https://github.com/darkpurple141/table

Last synced: 7 months ago
JSON representation

A POC of an AK Table

Awesome Lists containing this project

README

          

# Examples

## Render Prop

```tsx
import Table, { Row, Cell, TBody, THead, HeadCell } from '@atlaskit/table'

import { presidents } from './data'

type President = typeof presidents[number]

/**
* Primary UI component for user interaction
*/
export const RenderProp = ({ isSelectable }) => {
return (
numRows={presidents.length} isSelectable={isSelectable}>

Name
Party
Year

rows={presidents}>
{(row) => (

{row.nm}
{row.pp}
{row.tm}

)}


)
}
```

## Composition

```tsx
import '@atlaskit/css-reset'
import Table, { Row, Cell, TBody, THead, HeadCell } from '@atlaskit/table'

import { presidents } from './data'

/**
* Primary UI component for user interaction
*/
export const CompositionExample = ({ isSelectable }) => {
return (


Name
Party
Year


{presidents.map((row) => (

{row.nm}
{row.pp}
{row.tm}

))}


)
}
```