Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reuse table styles from docs in blog (#752)
- Loading branch information
1 parent
e6771ca
commit 1ee3c92
Showing
8 changed files
with
63 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'nextra': patch | ||
'nextra-theme-blog': patch | ||
'nextra-theme-docs': patch | ||
--- | ||
|
||
reuse table styles from docs in blog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
title: Table | ||
date: 2022/8/28 | ||
description: En example of using table. | ||
tag: web development | ||
author: Dimitri POSTOLOV | ||
--- | ||
|
||
## Test table | ||
|
||
| Left | Center | Right | | ||
| ---- | :----: | ----: | | ||
| ss2 | 333 | 3232 | | ||
| | 222 | 3232 | | ||
| | 23 | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
export { CopyToClipboard } from './copy-to-clipboard' | ||
export { Code } from './code' | ||
export { Pre } from './pre' | ||
export { Td } from './td' | ||
export { Th } from './th' | ||
export { Tr } from './tr' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React, { ComponentProps } from 'react' | ||
|
||
export const Td = (props: ComponentProps<'td'>) => ( | ||
<td | ||
className="m-0 border border-gray-300 px-4 py-2 dark:border-gray-600" | ||
{...props} | ||
/> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React, { ComponentProps } from 'react' | ||
|
||
export const Th = (props: ComponentProps<'th'>) => ( | ||
<th | ||
className="m-0 border border-gray-300 px-4 py-2 dark:border-gray-600 font-semibold" | ||
{...props} | ||
/> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React, { ComponentProps } from 'react' | ||
|
||
export const Tr = (props: ComponentProps<'tr'>) => ( | ||
<tr | ||
className={ | ||
'm-0 border-t border-gray-300 p-0 dark:border-gray-600 ' + | ||
'even:bg-gray-100 even:dark:bg-gray-600/20' | ||
} | ||
{...props} | ||
/> | ||
) |