New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@edux-design/utils

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edux-design/utils

Small helper utilities shared across the design system packages.

latest
npmnpm
Version
0.1.0
Version published
Weekly downloads
7
-41.67%
Maintainers
1
Weekly downloads
 
Created
Source

@edux-design/utils

Small helper utilities shared across the design system packages.

Current exports:

  • cx(...classes) – lightweight className joiner that skips falsy values (similar to clsx).
  • filterChildrenByDisplayName(children, displayName) – pulls specific slotted components out of a React tree (used by alerts, cards, etc.).

Installation

pnpm add @edux-design/utils
# or
npm install @edux-design/utils

Use it in any package/app that needs the same helpers.

Usage

import { cx, filterChildrenByDisplayName } from "@edux-design/utils";

function Panel({ children }) {
  const title = filterChildrenByDisplayName(children, "PanelTitle")[0];
  return (
    <section className={cx("rounded-xl p-6", !title && "pt-2")}>
      {title}
      {children}
    </section>
  );
}

Development

pnpm --filter @edux-design/utils lint
pnpm --filter @edux-design/utils check-types
pnpm --filter @edux-design/utils build

Add new helpers sparingly—anything exported here becomes part of the public API and should include tests + docs.

FAQs

Package last updated on 01 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts