Base Web React 组件

实现 Base 设计语言的 React 组件库。「A React Component library implementing the Base design language」

Github stars Tracking Chart

⚠️ Maintenance status. We are limiting our engagement with this repository while still mirroring our internal development. For more details, please check Open Source Engagement and Future. If you are an Uber developer and looking to open an issue, use this link or contribute.

Base is a design system comprised of modern, responsive, living components. Base Web is the React implementation of Base.

Usage

On npm, you can find Base Web as baseui.

Add baseui and its peer dependencies to your project:

# using pnpm
pnpm add baseui@next styletron-react styletron-engine-monolithic

# using npm
npm install baseui@next styletron-react styletron-engine-monolithic
import { Client as Styletron } from "styletron-engine-monolithic";
import { Provider as StyletronProvider } from "styletron-react";
import { LightTheme, BaseProvider, styled } from "baseui";
import { StatefulInput } from "baseui/input";

const engine = new Styletron();

const Centered = styled("div", {
  display: "flex",
  justifyContent: "center",
  alignItems: "center",
  height: "100%",
});

export default function Hello() {
  return (
    <StyletronProvider value={engine}>
      <BaseProvider theme={LightTheme}>
        <Centered>
          <StatefulInput />
        </Centered>
      </BaseProvider>
    </StyletronProvider>
  );
}

Both Base Web and Styletron come with TypeScript.

Docs

To read the documentation, please visit baseweb.design. To preview more component examples, please visit baseweb.design/ladle.

Main metrics

Overview
Name With Owneruber/baseweb
Primary LanguageTypeScript
Program languageJavaScript (Language Count: 6)
Platform
License:MIT License
所有者活动
Created At2018-03-09 01:32:10
Pushed At2025-04-21 17:02:32
Last Commit At
Release Count383
Last Release Namev13.0.0 (Posted on )
First Release Namev1.0.2 (Posted on 2018-08-28 17:02:11)
用户参与
Stargazers Count8.8k
Watchers Count79
Fork Count838
Commits Count3.4k
Has Issues Enabled
Issues Count0
Issue Open Count0
Pull Requests Count3779
Pull Requests Open Count1
Pull Requests Close Count572
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private