Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
docs(readme): fix broken markdown tables
Browse files Browse the repository at this point in the history
  • Loading branch information
csvenke authored Dec 5, 2018
1 parent 9890068 commit 375c9c0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ $ yarn add react-semantic-render

Renders content if `when` equals true.

| Property | Type | Description
|---|---|---|---|---|
| `when` | boolean | Conditional statement
| `render` | function | Shorthand for primary content
| `children` | node | Primary content
| Property | Type | Description |
|---|---|---|
| `when` | boolean | Conditional statement |
| `render` | function | Shorthand for primary content |
| `children` | node | Primary content |

```jsx
import { Show } from 'react-semantic-render';
Expand All @@ -80,7 +80,7 @@ import { Show } from 'react-semantic-render'
Renders content from specified callback function from either `render` or `children` on each element of `items`.

| Property | Type | Description
|---|---|---|---|---|
|---|---|---|
| `items` | any[] | Array to map
| `render` | function | Shorthand for primary content
| `children` | node | Primary content
Expand All @@ -100,7 +100,7 @@ import { List } from 'react-semantic-render'
Renders content from first `Switch.Case` that matches `value`, else `Switch.Default` if it exists.

| Property | Type | Description
|---|---|---|---|---|
|---|---|---|
| `value` | boolean | Conditional statement
| `children` | node | Primary content

Expand All @@ -122,7 +122,7 @@ import { Switch } from 'react-semantic-render'
Renders content from if when condition equals true, else renders content from else.

| Property | Type | Description
|---|---|---|---|---|
|---|---|---|
| `condition` | boolean | Conditional statement
| `if` | function | Renders when condition is true
| `else` | function | Renders when condition is false
Expand All @@ -146,7 +146,7 @@ import { ShowIfElse } from 'react-semantic-render'
Higher order component that injects 'hide' prop into specified component.

| Property | Type | Description
|---|---|---|---|---|
|---|---|---|
| `hide` | boolean | Conditional statement

```jsx
Expand Down

0 comments on commit 375c9c0

Please sign in to comment.