| 1 |
--- |
| 2 |
subtitle: Glossary |
| 3 |
--- |
| 4 |
|
| 5 |
## Basic Concepts |
| 6 |
|
| 7 |
- **Component** a React Component definition (class of function) |
| 8 |
- **Element** a React Component instance of a Component, typically `<Component ...>` |
| 9 |
- **Elements** a fragment of any number of elements, typically the `children` properties of elements |
| 10 |
- **Render Prop** a function returning element(s), typically used instead of children elements |
| 11 |
|
| 12 |
## Component Properties |
| 13 |
|
| 14 |
- `id` an element identifier |
| 15 |
- `icon` an icon identifier, as listed in the [icon gallery](tutorial-icons.html) |
| 16 |
- `label` a short text used as the displayed title of a component |
| 17 |
- `text` textual content to be printed on screen |
| 18 |
- `title` a description for a component, usually provided in a tooltip box |
| 19 |
- `settings` a key for making local state(s) persistent in user's settings |
| 20 |
- `value` the value associated to some basic control (see `onChange`) |
| 21 |
- `state` an object holding some current state (see `onUpdate`) |
| 22 |
- `default` identifies the element selected by default in a list |
| 23 |
- `selected` whether an element is selected or not (never by default) |
| 24 |
- `disabled` whether an element will not responds to user actions (never by default) |
| 25 |
- `selection` the identifier or value of current selection, or `undefined` (see `onSelect`) |
| 26 |
- `children` the children elements of a component instance |
| 27 |
- `onClick` a callback function in response to a click event |
| 28 |
- `onClose` a callback function in response to closing action |
| 29 |
- `onChange` a callback function in response to value changes (see `value`) |
| 30 |
- `onUpdate` a callback function in response to (partial) state updates (see `state`) |
| 31 |
- `onSelection` a callback function in response to user selection (see `selection`) |
| 32 |
- `style` an inlined CSS style object to inject in a DOM element |