npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@emailux/table

v1.0.1

Published

A React email table component to wrap emails (EmailUX Mailer)

Readme

@emailux/table

Table component for email.

Installation

# pnpm
pnpm add @emailux/table

# npm
npm install @emailux/table

# yarn
yarn add @emailux/table

Quick start

import { Table } from "@emailux/table";

export default function EmailTemplate() {
  return (
    <Table padding="10px" border borderColor="#e5e5e5" spacing="20px" width="100%">
      <Table.Row>
        <Table.Col>Your content here</Table.Col>
      </Table.Row>
    </Table>
  );
}

Examples

Rows and columns

import { Table } from "@emailux/table";

export default function ExampleRowsAndCols() {
  return (
    <Table padding="10px" border>
      <Table.Row align="left" valign="middle">
        <Table.Col>Cell 1</Table.Col>
        <Table.Col>Cell 2</Table.Col>
      </Table.Row>
      <Table.Row>
        <Table.Col>Cell 3</Table.Col>
        <Table.Col>Cell 4</Table.Col>
      </Table.Row>
    </Table>
  );
}

Inherit wrapper styles via context

padding, border, and borderColor from Table flow to Table.Row and Table.Col via context.

export default function ExampleContext() {
  return (
    <Table padding="12px" border borderColor="#ddd">
      <Table.Row>
        <Table.Col>Left</Table.Col>
        <Table.Col>Right</Table.Col>
      </Table.Row>
    </Table>
  );
}

Override per row or col

Table.Row can override context for its children; Table.Col can override for itself.

export default function ExampleOverrides() {
  return (
    <Table padding="12px" border borderColor="#ddd">
      <Table.Row padding="6px" borderColor="#bbb">
        <Table.Col>Compact A</Table.Col>
        <Table.Col border={false} padding="16px">Emphasized B</Table.Col>
      </Table.Row>
    </Table>
  );
}

Using colSpan and width

Table.Col extends native td props, so attributes like colSpan work as expected.

export default function ExampleColSpan() {
  return (
    <Table padding="10px" border>
      <Table.Row>
        <Table.Col colSpan={2} padding="8px">Section Header</Table.Col>
      </Table.Row>
      <Table.Row>
        <Table.Col width="70%">Item A</Table.Col>
        <Table.Col width="30%">$10</Table.Col>
      </Table.Row>
    </Table>
  );
}

Alignment, vertical alignment, and background

export default function ExampleAlignment() {
  return (
    <Table padding="10px" border>
      <Table.Row align="center" valign="top" backgroundColor="#fafafa">
        <Table.Col>Centered Top</Table.Col>
        <Table.Col>Also Centered</Table.Col>
      </Table.Row>
    </Table>
  );
}

Props

Table

| Name | Type | Required | Default | Description | | ---- | ---- | -------- | ------- | ----------- | | dir | "ltr" | "rtl" | No | Comes from wrapping Html component's dir context prop which is ltr | Text direction | | spacing | string | No | Comes from wrapping Html component's defaultSpacing context prop which is 20px | Spacing bottom, by default comes from Html defaultSpacing prop | | padding | string | No | "10px" | Inner padding applied to cells via context. | | border | boolean | No | false | Enables cell borders. | | borderColor | string | No | "#e5e5e5" | Border color when border is enabled. | | width | string | No | "100%" | Width of the rendered table. | | children | React.ReactNode | Yes | — | Typically one or more Table.Row. |

Notes:

  • When spacing is provided, an outer wrapper table is used to apply spacing.
  • padding, border, and borderColor are provided to descendants via context and can be overridden by Table.Row or Table.Col.
  • Borders are applied per cell with side-specific rules to avoid double borders (top/left on first row/column; right/bottom on all cells).

Table.Row

| Name | Type | Required | Default | Description | | ---- | ---- | -------- | ------- | ----------- | | children | React.ReactNode | Yes | — | One or more Table.Col. | | backgroundColor | string | No | — | Background color for the row. | | dir | "ltr" | "rtl" | No | "ltr" | Text direction for the content | | align | "left" \| "center" \| "right" | No | "left" | Horizontal text alignment for cells in the row. | | valign | "top" \| "middle" \| "bottom" | No | "middle" | Vertical alignment for cells in the row. | | padding | string | No | — | Overrides context padding for this row's cells. | | border | boolean | No | — | Overrides context border for this row's cells. | | borderColor | string | No | — | Overrides context borderColor for this row's cells. |

Table.Col

| Name | Type | Required | Default | Description | | ---- | ---- | -------- | ------- | ----------- | | children | React.ReactNode | Yes | — | Content for the cell. | | backgroundColor | string | No | — | Background color for the cell. | | dir | "ltr" | "rtl" | No | "ltr" | Text direction for the content | | spacing | string | No | | | | padding | string | No | — | Padding for the cell (defaults from context if not provided). | | border | boolean | No | — | Whether to set a border on the cell (defaults from context if not provided). | | borderColor | string | No | — | Color for the cell border when border is set (defaults from context if not provided). | | width | string | No | — | Width of the cell. | | align | string | No | — | alignment of cell |

Additional:

  • Table.Col extends native td props, so attributes like colSpan and rowSpan are supported.

License

MIT © iClasser