Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tgstation/tgui-core

React component library and tools for TGUI.
https://github.com/tgstation/tgui-core

react ss13 typescript

Last synced: about 1 month ago
JSON representation

React component library and tools for TGUI.

Awesome Lists containing this project

README

        

# tgui-core

A collection of utilities and components for the [tgui](https://github.com/tgstation/tgstation) framework.

This package was built to help the various downstream SS13 servers stay up to date with TGUI without having to keep a local version of each file.

You can view the code on [GitHub](https://github.com/tgstation/tgui-core).

## Installation

(assuming you have a tgui folder, navigate to the specific package)

```sh
cd tgui/packages/tgui
yarn add tgui-core
```

## Usage

Now, you can use them like normal TGUI components.

```tsx
import { Button } from "tgui-core/components";

Click;
```

You can even use it in tandem with your own in house TGUI components,

```tsx
import { Button } from "tgui-core/components";
import { Box } from "../components";
```

## License

MIT

## Contributing

Contributions are welcome. Please open an issue or a pull request. I am available on the tgstation [discord](https://discord.com/invite/EUvpBtU78X).

### Releasing a new version

To automagically release a new version of the tgui-core package, simply create a [new release](https://github.com/tgstation/tgui-core/releases/new) with the tag set to the new version you want to publish. Set the tag to be the commit you want to base the version off of (likely the latest, being the default).

The release workflow will take care of setting the `package.json` version, building, generating a release changelog, and publishing to npm.

### Development

This project uses [pnpm](https://pnpm.io/installation) for its package manager.

To set up the repository:
`pnpm install`