new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Mantine · all subjects

switch/group

3 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Switch.Group maxSelectedValues prop

Use the maxSelectedValues prop on Switch.Group to limit the number of selected values. When the limit is reached, remaining switches are disabled and cannot be selected.

Switch.Group uncontrolled form usage

Switch.Group can be used in uncontrolled forms. It renders a hidden input that joins all checked values into a single string. Props: name (passed to hidden input), hiddenInputValuesSeparator (joins values, default is ','), hiddenInputProps (additional props for hidden input). Example: <Switch.Group name="frameworks" hiddenInputValuesSeparator="|"><Switch label="React" value="react" /></Switch.Group>

Switch.Group controlled component

To use Switch.Group as a controlled component, pass value prop (string array) and onChange handler that updates state. Example: const [value, setValue] = useState<string[]>([]); <Switch.Group value={value} onChange={setValue}><Switch value="react" label="React" /></Switch.Group>

Give your agent this brain