MUI Components
MUI Components Recommendations
MUI components should be used as usual. Components props should be used to customize components. Styles changes of components allowed, but instances styles disallowed. You canβt modify properties names, add/delete new properties. Every MUI element will be converted to MUI React elements accordingly. Below there is a list of the MUI components and their allowed and disallowed properties. You should use only supported properties to customize your components. MUI component property marked by β is supported. Property marked by π« is not supported by Reactor, the alternative properties or components should be used instead.
NOTE: Please avoid changing the structure of the MUI components, as well as changing the property names, adding new or removing existing properties.
Alert
Available Properties:
- Severity (choice of component type, the same property is responsible for the color) β
- Variant (responsible for color opacity) β
- Title? (responsible for adding the title) β
- β³ Title (title text) β
- Description? (responsible for adding the description) β
- β³ Description (description text) β
- Action? π«
- β³ Instance π«
- On Close? π«
Avatar
Available Properties:
- Size (you can change the size of the avatar) β
- Variant (if you need square or rounded avatars) β
- Content (responsible for what you want to use in this component: Icon, image or text) β
- Badge π«
- Initials (content text) β
AppBar
Available Properties:
- Color (component color) β
You can use the properties of the component's children. But you can't change the children of a component. Use the properties of these components: Toolbar, IconButton
Autocomplete
Available Properties:
- Multiple Value (component color) π«
To change the properties of a component, use the properties of the child element
Floating Action Button
Available Properties:
- Variant (component variant) β
- Size (component size) β
- Color (component color) β
- State (component state) β
- Icon? (adding icon) β
- β³ Icon (your icon) β
- Label (component text) β
Badge
Available Properties:
- Variant (changes a badge into a small dot) β
- Color (Use color prop to apply theme palette to component) β
- Content (content text) β
Button
Available Properties:
- Size (component size) β
- Color (component color) β
- State (component state) β
- Variant (allows you to select a component variant) β
- Start Icon β
- End Icon β
- Label (text button) β
Card
Card Elements:
- CardHeader? adding child component CardHeader β
- CardContent? adding child component CardComponent β
- CardActions? adding child component CardActions β
- CardMedia? adding child component CardMedia β
- CardContent: Insert a custom component and give it a name β_Custom / Blog Postβ
Use only ready-made component structure
Chip
Available Properties:
- Size (component size) β
- Color (component color) β
- State (component state) β
- Variant (allows you to select a component variant) β
- Delete? π«
- Thumbnail? π«
- Label (component text) β
Checkbox
Available Properties:
- Checked (used to turn an on or off components) β
- Indeterminate π«
- Size (component size) β
- Color (component color) β
- State (component state) β
- Label (responsible for adding the text) β
- β³ Value (component text) β
Drawer
Available Properties:
- Direction === row β
- Spacing === 0 β
- Slots (here you have to choose how many child elements you want to add) β
- InstanceSlot ===
or β
Form Elements
Contain
Switch
Available Properties:
- Checked (used to turn an on or off components) β
- Size (component size) β
- Color (component color) β
- State (component state) β
- Label (responsible for adding the text) β
- β³ Label (component text) β
Radio Button
Available Properties:
- Checked (used to turn an on or off components) β
- Size (component size) β
- Color (component color) β
- State (component state) β
- Label (responsible for adding the text) β
- β³ Label (component text) β
Available Properties:
- Variant (select the style of the typography component) β
- Gutter Bottom π«
- Content (component text) β
Tooltip
Available Properties:
- Direction (component placement) β
Button Group
Available Properties:
- Orientation (the button group can be displayed vertically) β
- Type (can also be used to create a split button) π«
- Color (component color) β
- Variant (standard button variants) β
If you want to change the size of the component then just change the size of the child components of the ButtonGroup. The child component is the Button
Link
Available Properties:
- Color (text color) β
- Underline (can be used to set the underline behavior) β
- State (state component) β
- Link (component text) β
List
Available Properties:
- Disable Padding (Disable top and bottom padding) β
- Dense (Make children items much smaller) β
Pagination
Available Properties:
- Size (component size) β
- Color (component color) β
- Variant (add component outline) β
- Shape (adds rounding) β
- Disabled (disabled component) β
Toggle Button
Available Properties:
- Size (component size) β
- State (component state) β
- Icon (add component Icon) β
Rating
Available Properties: * Size (component size) β * Disabled (turn off component) β
Text Field
Available Properties:
- Variant (component variant) β
- Size (component size) β
- State (component state) β
- Has Value (moves label to the top of the component) β
- Label (text label) β
- Adorn. Start? π«
- Adorn. End? π«
- Value? (adds main text) β
- β³ Value (text TextField) β
- Placeholder (adds placeholder) β
- β³ Placeholder (text placeholder) β
- Helper? π«
If you want to add custom styles(border) for TextField. Go inside the component, select the input and set border(stroke)
Paper
In the current Reactor version this component is not supported.
Available Properties:
- Variant π«
- Elevation π«
- Square π«
- Instance Slot π«
- β³ Instance π«
Progress
Available Properties:
- Type (component type) β β for LinearProgress
- Size (component size) β β for CircularProgress
- Color (component color) β
- Label (adding component text)β
Slider
Available Properties:
- Size β
- Variant β
- Color β
- State β
- Orientation β
- Values β
- Label β
Skeleton
Available Properties:
- Shape (component shape) β
Snackbar
There are two use cases:
- Use with a child element SnackbarContent
Available Properties:
- Action (added Button component with button props) β
- Message (Text component) β
Use with a child element Alert
Available Properties:
- All available props from component Alert β
Select
Available Properties:
- Variant (component variant) β
- Size (component size) β
- State (component state) β
- Active β
- Has Value (moves label to the top of the component) β
- Label (text label) β
- Adorn. Start? β
- Value? (adds main text) β
- β³ Value (text select) β
- Placeholder (adds placeholder) β (does not work if you use Autocomplete)
- β³ Placeholder (text placeholder) β (does not work if you use Autocomplete)
- Helper? β
Speed Dial
Available Properties:
- Direction (component direction) β
- Instance (component child) β
Stack
Available Properties:
- Direction (direction of childrens. Can be Row or Column) β
- Spacing (spacing between children slots.) β
- Slots (Children slots count) β
Stepper
- Small Screen (component size) β
- Optional (description step) π«
- Text (position text) β
- Alignment (component position) β
Table
Available Properties:
- Checkbox (adding checkbox) β
- Rows (number of rows in table) β
TableCellRow properties:
- Checkbox (adding checkbox) β
- Columns (number of columns) β
TableCellRow properties:
- Checkbox (adding checkbox) β
Tabs
Available Properties:
- Orientation (component position) β
- Small Screen (component size) β
- Variant (component variant) β
- Scroll Visible π«
Timeline
Available Properties:
- Opposing π«
- Variant (component variant) β
- Position (component position) β
Child Properties TimelineItem:
- Opposing π«
- Variant (component variant) β
- Position (component position) β