Skip to content

Commit

Permalink
Create Center.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
atherdon authored Sep 20, 2021
1 parent ee7d1b0 commit 1773779
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Center.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export const Center: FunctionComponent<CenterProps> = ({
children,
className
}: CenterProps): React.ReactElement => (
<table cellSpacing="0" cellPadding="0" className={className}>
<tr>
<td align="center">{children}</td>
</tr>
</table>
)

0 comments on commit 1773779

Please sign in to comment.