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

Storybook · API · all subjects

argtypes/control

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

control.min property

The min property is a number that sets the minimum allowed value when control type is 'number' or 'range'.

control property type signature

The control property can be: a ControlType string; an object with type (ControlType), and optional properties (accept, labels, max, min, presetColors, step); or false to prevent control rendering. Default is 'select' if options are specified, else inferred from type, else 'object'.

ControlType values for arrays

For array data types, the control type 'object' is available. It provides a JSON-based editor to handle array values and allows editing in raw mode.

ControlType values for booleans

For boolean data types, the control type 'boolean' is available. It provides a toggle for switching between possible states.

ControlType values for enums

For enum data types, the following control types are available: 'check' provides stacked checkboxes for selecting multiple options; 'inline-check' provides inlined checkboxes; 'radio' provides stacked radio buttons; 'inline-radio' provides inlined radio buttons; 'select' provides a select dropdown for a single value; 'multi-select' provides a select dropdown for multiple values.

ControlType values for numbers

For number data types, the following control types are available: 'number' provides a numeric input with min, max, and step options; 'range' provides a range slider with min, max, and step options.

ControlType values for objects

For object data types, the following control types are available: 'file' provides a file input that returns an array of URLs and can be customized to accept specific file types via the accept property; 'object' provides a JSON-based editor to handle object values and allows editing in raw mode.

ControlType values for strings

For string data types, the following control types are available: 'color' provides a color picker and can be configured with presetColors; 'date' provides a datepicker; 'text' provides a freeform text input.

control.accept property

The accept property is a string specifying file types accepted when control type is 'file'. The value should be a string of comma-separated MIME types.

control.labels property

The labels property is an object mapping options to display labels. It takes the form { [option: string]: string }. Labels does not have to be exhaustive; if an option is not in the object's keys, it is used verbatim.

control.max property

The max property is a number that sets the maximum allowed value when control type is 'number' or 'range'.

control.presetColors property

The presetColors property is a string array that defines the set of colors available in addition to the general color picker when control type is 'color'. Values should be valid CSS color values.

control.step property

The step property is a number that sets the granularity allowed when incrementing/decrementing the value for control types 'number' or 'range'.

date control UNIX timestamp limitation

The date control converts the date into a UNIX timestamp when the value changes. This is a known limitation that will be fixed in a future release. If you need to represent the actual date, you need to update the story's implementation and convert the value into a date object.

Give your agent this brain