https://example.com
👋🏻 Welcome to React Browser Containers!
‣
‣
npm i react-browser-components
Basic usage
import { ArcBrowser } from "react-browser-components";import { useState } from "react";function ArcBrowserWithTabs() {const [tab, setTab] = useState(0);return (<div style={{ width: "640px", height: "480px" }}><ArcBrowsertabs={tabs}tab={tab}setTab={setTab}/></div>); // by default, browser fills it's parent element};// ====== tabs =========const tabs = [{name: "Example",link: "https://example.com",content: (<divstyle={{display: "flex",alignItems: "center",justifyContent: "center",width: "100%",height: "100%",}}>👋🏻 Welcome to React Browser Containers!</div>),icon: (<divstyle={{width: "100%",height: "100%",backgroundColor: "#3C82F6",borderRadius: "50%",}}/>),},{name: "Click me!",link: "https://example.com",content: (<divstyle={{display: "flex",alignItems: "center",justifyContent: "center",width: "100%",height: "100%",}}>✨ With tabs functionality!</div>),icon: (<divstyle={{width: "100%",height: "100%",backgroundColor: "#E45549",borderRadius: "50%",}}/>),},];
Interactive demo available on desktop site!
Theme:
LightDark