@bedrock-core/ore-styled
v0.5.3
Published
Ore-UI styled compound components for @bedrock-core/ui
Maintainers
Readme
@bedrock-core/ore-styled
Optional prebuilt Ore-UI styled compound components for @bedrock-core/ui.
Drop-in styled components that match Minecraft's modern Ore-UI look. Skip the styling boilerplate when you want consistent buttons, toggles, tabs, and cards in your addon UI.
Install
yarn add @bedrock-core/ore-styled
# or
npm install @bedrock-core/ore-styledComponents
Button— styled press button with variantsCard— content container with Ore-UI framingCheckbox— boolean input with on/off texturesRadioGroup/Radio— single-select groupTabs/TabList/Tab/TabPanel— tabbed navigationToggle— switch-style boolean inputToggleButtonGroup/ToggleButtonItem— multi-button selectorDivider— horizontal/vertical separatortheme— design tokens for ad-hoc styling
Usage
import { Card, Toggle, Checkbox } from '@bedrock-core/ore-styled';
import { Text, useState } from '@bedrock-core/ui';
export const Settings = () => {
const [enabled, setEnabled] = useState(false);
const [accepted, setAccepted] = useState(false);
return (
<Card>
<Text>{'Settings'}</Text>
<Toggle on={enabled} onChange={setEnabled} />
<Checkbox checked={accepted} onChange={setAccepted} label={'I agree'} />
</Card>
);
};Resource pack
These components render through the companion @bedrock-core/ui resource pack — make sure the latest .mcpack from the releases page is installed alongside your addon.
License
MIT — see the root repository.
