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

@riverty/web-components

Package Overview
Dependencies
Maintainers
5
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@riverty/web-components

Riverty Design System: Web Components

latest
npmnpm
Version
6.5.0
Version published
Maintainers
5
Created
Source

Riverty Design System: Web Components

Riverty, your flexible Payment Companion. 25+ million users, 1+ billion secure transactions.

Riverty Design System: a design and development toolkit tailor-made for Riverty teams and collaborators.

designsystem.riverty.com

Contributing

We welcome contributions to the Web Components package! Here's how to get started:

Development Setup

cd packages/components
npm install
npm run develop  # Starts watch mode

Creating Components

  • Generate a new component:

    npx stencil generate component-name
    
  • Follow the component checklist:

    • TypeScript definitions with JSDoc comments
    • Sass styles following BEM methodology
    • Responsive design
    • Dark mode support (via CSS variables)
    • Storybook story in packages/storybook/stories/
    • Unit tests (Jest)
    • Accessibility (ARIA labels, keyboard navigation)
    • Documentation

Component Structure

import { Component, Prop, h } from '@stencil/core';

@Component({
  tag: 'r-component',
  styleUrl: 'component.scss',
  shadow: true,
})
export class RComponent {
  /** Description of prop */
  @Prop() myProp: string;

  render() {
    return <div>{this.myProp}</div>;
  }
}

Testing

# Run unit tests
npm run test

# Run in watch mode
npm run test -- --watch

Best Practices

  • Use web component standards
  • Follow StencilJS conventions
  • Ensure accessibility (WCAG 2.1/2.2 AA)
  • Support keyboard navigation
  • Test with screen readers
  • Include all component variants in Storybook
  • Write meaningful JSDoc comments

Useful Commands

  • npm run build - Build the component library
  • npm run develop - Watch mode for development
  • npm run test - Run unit tests
  • npm run generate - Generate new component

For complete contribution guidelines, see CONTRIBUTING.md in the repository root.

FAQs

Package last updated on 26 Mar 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