📄️ Overview of a state object
In Hackbox, a state must contain the following properties:
📄️ Theme
A theme describes the basic theming of a member's screen. It can define the default background colors and text colors of the Header and Main sections of the, and is probably the first thing you should think about when creating a Hackbox state.
📄️ Presets
A preset is a configuration of a component type with a set of properties or parameters. They are useful for defining common visual setup for components without having to define them over and over again in the components themselves.
📄️ Components
A component is a UI element that the member can interact with. They are commonly defined from a preset first, and then additional specific properties or parameters of each component within the state can then be defined. Components can be any of these component types.