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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@xsolla-zk/react

v1.3.2

Published

A comprehensive React component library built with Tamagui that provides a complete design system for building modern user interfaces. This package includes accessible, customizable, and performant components with full TypeScript support and theming capab

Readme

@xsolla-zk/react

A comprehensive React component library built with Tamagui that provides a complete design system for building modern user interfaces. This package includes accessible, customizable, and performant components with full TypeScript support and theming capabilities.

Installation

Install the package using your preferred package manager:

# Using npm
npm install @xsolla-zk/react

# Using pnpm
pnpm install @xsolla-zk/react

# Using yarn
yarn add @xsolla-zk/react

Getting Started

Basic Setup

  1. Install the required peer dependencies:
npm install @tamagui/adapt @tamagui/animate-presence @tamagui/image @tamagui/portal burnt react react-dom
  1. Import the CSS reset in your app entry point:
import '@xsolla-zk/react/reset.css';
  1. Set up Tamagui configuration:
import { createTamagui } from '@tamagui/core';
import { webConfig } from '@xsolla-zk/config/web';

export const config = createTamagui(webConfig);

// For proper TypeScript support
declare module '@tamagui/core' {
  interface TamaguiCustomConfig extends typeof config {}
}
  1. Wrap your app with TamaguiProvider:
import { TamaguiProvider } from '@tamagui/core';
import { config } from './tamagui.config';

function App() {
  return (
    <TamaguiProvider config={config}>
      {/* Your app content */}
    </TamaguiProvider>
  );
}

Component Usage

Basic Components

import { Button, Text, Input, View } from '@xsolla-zk/react';

function MyComponent() {
  return (
    <View padding="$4" backgroundColor="$background">
      <Text fontSize="$6" fontWeight="bold">
        Welcome to Xsolla ZK UI
      </Text>

      <Input
        placeholder="Enter your text..."
        margin="$2"
      />

      <Button
        size="$4"
        theme="active"
        onPress={() => console.log('Button pressed!')}
      >
        Click me
      </Button>
    </View>
  );
}

Advanced Components

import {
  Dialog,
  Select,
  Tooltip,
  Progress,
  Avatar,
  Checkbox
} from '@xsolla-zk/react';

function AdvancedExample() {
  return (
    <Dialog>
      <Dialog.Trigger asChild>
        <Button>Open Dialog</Button>
      </Dialog.Trigger>

      <Dialog.Portal>
        <Dialog.Overlay />
        <Dialog.Content>
          <Dialog.Title>Settings</Dialog.Title>
          <Dialog.Description>
            Configure your preferences here.
          </Dialog.Description>

          {/* Dialog content */}

          <Dialog.Close asChild>
            <Button>Save Changes</Button>
          </Dialog.Close>
        </Dialog.Content>
      </Dialog.Portal>
    </Dialog>
  );
}

Available Components

The library includes a comprehensive set of components:

Layout & Structure

  • View - Basic layout container
  • Stack - Flexible stack layouts
  • Separator - Visual dividers
  • ScrollView - Scrollable containers

Form Controls

  • Button - Interactive buttons with variants
  • Input - Text input fields
  • TextArea - Multi-line text input
  • Select - Dropdown selection
  • Checkbox - Boolean input controls
  • RadioGroup - Single selection from options
  • Switch - Toggle controls
  • Slider - Range input controls

Data Display

  • Text - Typography component
  • Progress - Progress indicators
  • Avatar - User profile images
  • Badge - Status indicators
  • Card - Content containers

Feedback

  • Dialog - Modal dialogs
  • AlertDialog - Confirmation dialogs
  • Popover - Contextual overlays
  • Tooltip - Helpful hints
  • Toast - Notification messages

Navigation

  • Tabs - Tab navigation
  • Breadcrumbs - Navigation trails

Theming

The library supports comprehensive theming with light and dark modes:

import { Theme, useTheme } from '@tamagui/core';

function ThemedComponent() {
  const theme = useTheme();

  return (
    <Theme name="dark">
      <View backgroundColor="$background">
        <Text color="$color">This respects the theme</Text>
      </View>
    </Theme>
  );
}

TypeScript Support

All components are fully typed with comprehensive TypeScript definitions:

import type { ButtonProps, TextProps } from '@xsolla-zk/react';

interface CustomButtonProps extends ButtonProps {
  variant?: 'primary' | 'secondary';
}

const CustomButton: React.FC<CustomButtonProps> = ({ variant, ...props }) => {
  return <Button theme={variant} {...props} />;
};

Performance

The library is optimized for performance with:

  • Tree-shaking support for smaller bundle sizes
  • Memoized components to prevent unnecessary re-renders
  • Optimized animations with Reanimated
  • Minimal runtime overhead

Cross-Platform Support

Components work seamlessly across:

  • Web - Full browser support with responsive design
  • React Native - Native mobile app development
  • Server-Side Rendering - SSR compatibility

Storybook Documentation

Interactive component documentation is available in our Storybook:

# Run Storybook locally
pnpm storybook

Development

To contribute or develop with this package:

# Clone the repository
git clone https://github.com/Xsolla-ZK/Xsolla-ZK-UI.git

# Install dependencies
pnpm install

# Start development mode
pnpm dev

# Run tests
pnpm test

# Build the package
pnpm build

License

This package is part of the Xsolla ZK UI design system and is licensed under the MIT License.