Socket
Book a DemoInstallSign in
Socket

@yhangry/sdk

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yhangry/sdk

React SDK for embedding the [Yhangry](https://yhangry.com) private chef service widget into your holiday rental website.

0.0.10
latest
npmnpm
Version published
Weekly downloads
20
-25.93%
Maintainers
1
Weekly downloads
 
Created
Source

Yhangry SDK

React SDK for embedding the Yhangry private chef service widget into your holiday rental website.

📦 Installation

npm install @yhangry/sdk

🚀 Getting Started

  • Wrap your application in YhangryProvider

In your main app entry point (e.g., src/index.tsx), wrap your app in the YhangryProvider and provide your clientId:

import { YhangryProvider } from '@yhangry/sdk';
import App from './App';

const Root = () => (
  <YhangryProvider clientId="your_client_id">
    <App />
  </YhangryProvider>
);

export default Root;
  • Render the Widget component

Place the widget anywhere in your component tree:

import { Widget } from '@yhangry/sdk';

function BookingPage() {
  return <Widget />;
}

⚙️ Configuration

You can obtain your clientId from the Yhangry Developers Portal.

🔧 Widget Props

The widget will use the default configuration from your developer dashboard. You can override this behavior by passing a config object.

<Widget
  config={{
    theme: 'light',
    color_hex: '#000000',
    copy_title: 'Book a Private Chef',
    copy_subtitle: 'Delicious meals in your holiday rental'
  }}
/>
PropTypeDescription
idstringYhangry Widget ID
theme"light" | "dark"Theme style for the widget
color_hexstringPrimary color (hex format, e.g. #FF0000)
copy_titlestringCustom title displayed in the widget
copy_subtitlestringCustom subtitle displayed below the title

💬 Need Help?

Visit developers.yhangry.com or reach out to us at tech@yhangry.com.

FAQs

Package last updated on 08 Aug 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.