
Security News
Feross on TBPN: Socket's Series C and the State of Software Supply Chain Security
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.
@leather.io/ui
Advanced tools
This package contains Leather Wallet's UI library for our web + React Native applications.
This package contains Leather Wallet's UI library for our web + React Native applications.
This package colocates Web and React Native code, such that commonalities such as shared logic and types are shared. The naming convention must be followed.
*.web.ts — bundled only for Web*.native.ts — bundled only for React Native*.shared.ts — bundled for all platformsOur web apps use panda css. To setup in your application you need to:
@pandacss/dev@leather.io/ui/stylesSpecify the library as part of the panda.config include:
include: [
'./node_modules/@leather.io/ui/dist-web/**/*.{js,jsx,ts,tsx}',
'./src/**/*.{js,jsx,ts,tsx}',
],
Alias react and react-dom to avoid react errors.
Configure your module to handle jsx files
export const config = {
...
module: {
resolve: {
...
alias: {
'leather-styles': path.resolve('leather-styles'),
'react': path.resolve('./node_modules/react'),
'react-dom': path.resolve('./node_modules/react-dom')
},
...
rules: [
...
{
test: /\.(js)$/,
include: [/node_modules\/@leather.io\/ui/],
loader: 'esbuild-loader',
options: { tsconfig: './tsconfig.json', loader: {'jsx'},target: 'es2020' },
},
All dynamic HTML content rendered in the web app (such as FAQs, explainers, and CMS-driven posts) is sanitized using DOMPurify via a shared utility (sanitizeContent).
This is enforced in all UI components that render user- or CMS-driven HTML, including FAQ, explainer, and post-driven UI elements.
A shared utility, sanitizeContent, is used throughout the codebase to sanitize any post content before rendering. Example usage:
import { sanitizeContent } from '@leather.io/ui/utils/sanitize-content';
const safeHtml = sanitizeContent(post.Summary);
This is applied in all FAQ, explainer, hover card, and heading components that render post content.
FAQs
This package contains Leather Wallet's UI library for our web + React Native applications.
We found that @leather.io/ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.

Security News
OSV withdrew 157 OSV malware reports after automated false positives incorrectly flagged trusted npm and PyPI packages, sending bad records into tools that rely on OSV data.

Research
/Security News
TrapDoor crypto stealer hits 36 malicious packages across npm, PyPI, and Crates.io, targeting crypto, DeFi, AI, and security developers.