Margo UI

A React component kit in plain CSS, with compound components and styles your own classes always override.

What is it?

It's the component kit I build my own projects with, this one included. Most components are compound: a root you render, and parts you mount inside it. There are no switches for what a component shows: if a part is in the JSX, it renders.

tsx
<Header>
  <Header.Title>Settings</Header.Title>
  <Header.Trailing>
    <Button aria-label="close" onClick={close}>
      <Button.Icon><MdClose /></Button.Icon>
    </Button>
  </Header.Trailing>
</Header>
Settings