Socket
Socket
Sign inDemoInstall

sakana-widget-react

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sakana-widget-react

A React component that wrap "Sakana! Widget".


Version published
Maintainers
1
Install size
25.7 kB
Created

Readme

Source

🐟「Sakana! Widget React」

Banner

A React component that wrap Sakana! Widget.

See demo

Quick Start

Install

npm install sakana-widget sakana-widget-react

Import CSS

See usage of Sanaka! Widget's README, choose a method you prefer to import CSS.

Use component

options property of SanakaWidget component will be used as parameter of constructor of SanakaWidget class.

import { SanakaWidget } from "sakana-widget-react";

function App() {
	return (
		<SanakaWidget
			options={{
				character: "takina",
				title: true,
			}}
		/>
	);
}

API

Props

import { type DetailedHTMLProps, type HTMLAttributes } from "react";
import { SakanaWidgetOptions } from "sakana-widget";

type DivElementAttributes = Omit<
	DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
	"key" | "ref"
>;

export interface SakanaWidgetProps extends DivElementAttributes {
	/** @default false */
	disableBounceOnMount?: boolean;
	options: SakanaWidgetOptions;
}

License

Released under MIT License, please note that the 2 default images should not be used for any commercial activities. This project used to be a secondary development based on Sakana! Widget.

Image source: 大伏アオ @blue00f4 pixiv

Contributing

See CONTRIBUTING.md.

Keywords

FAQs

Last updated on 20 Feb 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc