Skip to main content

Category

caution

All props/parameters are optional unless they are marked with an asterisk ( * ).

Example

import { components } from "replugged";
const { Category } = components;

<Category title="Foo" note="This is a description">
{/* Your setting components here */}
</Category>;

Props

NameTypeDefaultDescription
disabledbooleanfalseWhether the category and its children are disabled
notestringDescription of what the category contains
onChange() => voidFunction ran on open state change
openbooleanfalseWhether the category is opened
title* stringCategory title
caution

It's opened state, by default, is automatically handled by the component. open and onChange both must be specified to override.