Skip to content

A library of Roact UI components that roughly follow the Material Design 3 Guidlines.

License

Notifications You must be signed in to change notification settings

simplynoni/roblox-material-ui

Repository files navigation

Roblox Material UI

A library of Roact UI components that roughly follow the Material Design 3 Guidlines. It also includes Material Color Utilities like Scheme, Palettes, HCT, and Blend.

This is still in alpha, and not all components are included yet so I wouldn't recommend using it in production games. Though feel free to contribute if you want.

Currently Indcluded Components

Examples

// Creates a red filled button in the center of the screen
import { FilledButton, Scheme, Theme, ThemeState } from '@rbxts/material-ui';
import Roact from '@rbxts/roact';
import { Players } from '@rbxts/services';

const themeColor = Color3.fromRGB(255, 0, 0);
const theme: ThemeState = {
	Color: themeColor,
	Theme: Theme.Dark,
	Scheme: Scheme.dark(themeColor).Colors,
};

const component = (
	<screengui>
		<FilledButton
			Theme={theme}
			AnchorPoint={new Vector2(0.5, 0.5)}
			Position={UDim2.fromScale(0.5, 0.5)}
			Text='This is a button!'
			AutomaticSize
			Pressed={() => {
				print('pressed!');
			}}
		/>
	</screengui>
);

const player = Players.LocalPlayer;
Roact.mount(component, player.WaitForChild('PlayerGui'));

Settings Menu Phone

About

A library of Roact UI components that roughly follow the Material Design 3 Guidlines.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published