dyte-io / ui-kit

Dyte's UI library for creating meeting interfaces.
Apache License 2.0
1 stars 1 forks source link

Logo

UI Kit by dyte

A set of UI components to truly customize your meeting UI
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

Getting Started

There are separate UI Kit packages for React and Angular because they don't fully support Web Components natively yet. Check out the links to the packages below

React UI Kit · Angular UI Kit

First, you will need to install the ui-kit along with the web-core package:

npm i @dytesdk/ui-kit @dytesdk/web-core

The web-core package is the package which handles all the low level logic required for a meeting by interating with our servers. Use it to create a meeting object, which you can pass along to the UI Kit components.

Usage

You'll need to initialize a meeting object first.

const meeting = await DyteClient.init({
  roomName: '<room-name>',
  authToken: '<auth-token>',
  defaults: {
    video: true,
    audio: true,
  },
});

You can now pass this object to most of the components, like so (with Vanilla JS, HTML):

<!-- Load the component -->
<dyte-meeting id="my-meeting"></dyte-meeting>

<script>
  const init = async () => {
    const meeting = await DyteClient.init({
      authToken: '<auth-token>',
      roomName: '<room-name>',
      defaults: {
        video: true,
        audio: true,
      },
    });

    const meetingEl = document.getElementById('my-meeting');
    meetingEl.meeting = meeting;
  };

  init();
</script>

About

ui-kit is created & maintained by Dyte, Inc. You can find us on Twitter - @dyte_io or write to us at dev [at] dyte.io.

This is a monorepo for all of Dyte's UI Kit packages.

Here is a short description for all the packages:

Path Description
packages/core The main source code for all Stencil components. You will write code primarily in this directory.
packages/react The React UI Kit wrapper package
packages/angular The Angular UI Kit wrapper package
packages/vue The Vue UI Kit wrapper package

License

This package is licensed under Apache v2.0, for more details, check out LICENSE.

Contributing

To get started, you need to first make changes in the packages/core directory. You can find the code for each component in packages/core/src/components.

You need to cd into packages/core directory and run npm start.

After your changes are made, you need to cd to the root and then run npm run build, so that the wrapper code also gets updated.

Take a look at out contributing guidelines before you start contributing!

The names and logos for Dyte are trademarks of Dyte, Inc.

We love open source software! See our other projects and our products.