MCPcopy Index your code
hub / github.com/uber/baseweb

github.com/uber/baseweb @v13.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v13.0.0 ↗ · + Follow
3,547 symbols 9,295 edges 2,415 files 108 documented · 3% updated 4d agov13.0.0 · 2023-06-13★ 8,993
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Base Web React Components

Build status

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 yarn
yarn add baseui styletron-react styletron-engine-monolithic

# using npm
npm install baseui 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 flow types and TypeScript. All our components are typed and examples have Vanilla, Flow and TypeScript versions.

Docs

To read the documentation, please visit baseweb.design.

Contributing

Contributing

Shoutouts 🙏

BrowserStack Logo

Big thanks to BrowserStack for letting the maintainers use their service to debug browser issues.

Extension points exported contracts — how you extend this code

JestExpectType (Interface)
(no doc)
packages/baseui-codemods/flow-typed/npm/jest_v24.x.x.js
IItem (Interface)
(no doc)
documentation-site/examples/menu/profile.tsx
BottomNavigationProps (Interface)
(no doc)
src/bottom-navigation/types.ts
DOMRectReadOnly (Interface)
(no doc)
src/types/resize-observer-polyfill.d.ts
AspectRatioBoxBodyComponentType (Interface)
(no doc)
src/aspect-ratio-box/aspect-ratio-box-body.tsx
MessageCardProps (Interface)
(no doc)
src/message-card/types.ts
Window (Interface)
(no doc)
src/test/integration.ts
FlexGridComponentType (Interface)
(no doc)
src/flex-grid/flex-grid.tsx

Core symbols most depended-on inside this repo

toBe
called by 766
flow-typed/npm/jest_v24.x.x.js
getOverrides
called by 432
src/helpers/overrides.tsx
css
called by 425
src/styles/__mocks__/styled.tsx
styled
called by 424
src/styles/__mocks__/styled.tsx
mount
called by 324
src/test/integration.ts
useStyletron
called by 303
src/styles/__mocks__/styled.tsx
toEqual
called by 233
flow-typed/npm/jest_v24.x.x.js
focus
called by 136
src/select/select-component.tsx

Shape

Function 2,663
Method 489
Class 361
Interface 34

Languages

TypeScript100%

Modules by API surface

flow-typed/npm/selenium-webdriver_v3.x.x.js137 symbols
packages/baseui-codemods/flow-typed/npm/jest_v24.x.x.js47 symbols
flow-typed/npm/jest_v24.x.x.js47 symbols
flow-typed/npm/jest_v23.x.x.js47 symbols
src/data-table/__tests__/data-table.stories.tsx33 symbols
src/select/__tests__/select.stories.tsx30 symbols
src/select/select-component.tsx28 symbols
src/datepicker/__tests__/datepicker.stories.tsx28 symbols
src/popover/popover.tsx25 symbols
vrt/ci.js24 symbols
src/drawer/drawer.tsx17 symbols
src/modal/modal.tsx16 symbols

Dependencies from manifests, versioned

@babel/cli7.17.10 · 1×
@babel/core7.17.10 · 1×
@babel/generator7.17.10 · 1×
@babel/helper-builder-react-jsx7.16.7 · 1×
@babel/parser7.17.10 · 1×
@babel/plugin-external-helpers7.16.7 · 1×
@babel/plugin-proposal-class-properties7.16.7 · 1×
@babel/plugin-proposal-export-default-from7.16.7 · 1×
@babel/plugin-syntax-flow7.16.7 · 1×
@babel/plugin-transform-flow-strip-types7.16.7 · 1×
@babel/plugin-transform-react-jsx-self7.16.7 · 1×
@babel/plugin-transform-react-jsx-source7.16.7 · 1×

For agents

$ claude mcp add baseweb \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact