mirror of
https://github.com/outline/outline.git
synced 2026-12-02 01:34:47 +03:00
27 lines
588 B
TypeScript
27 lines
588 B
TypeScript
import type * as React from "react";
|
|
|
|
/**
|
|
* A layout table without the default spacing that email clients apply.
|
|
*
|
|
* @param props the attributes of the table.
|
|
* @returns the table element.
|
|
*/
|
|
export const Table = (props: React.TableHTMLAttributes<HTMLTableElement>) => (
|
|
<table
|
|
role="presentation"
|
|
border={0}
|
|
cellSpacing={0}
|
|
cellPadding={0}
|
|
{...props}
|
|
/>
|
|
);
|
|
|
|
/** Alias of the native tbody element. */
|
|
export const TBody = "tbody";
|
|
|
|
/** Alias of the native tr element. */
|
|
export const TR = "tr";
|
|
|
|
/** Alias of the native td element. */
|
|
export const TD = "td";
|