read Only
Whether the node is read-only.
Configures a component to be stated as "read-only".
From Carbon documentation, the read-only states "are applied to components when the user is allowed to review but not modify the component. It removes all interactive functions from the component.", meaning that a component in a read-only state is disabled but stays focusable and readable by screen reader services.
Parameters
UI element type.
The MutableInteractionSource associated with the element.
Selection state of the element.
Whether to merge descendants into a single tree.
Configures a component to be stated as "read-only".
From Carbon documentation, the read-only states "are applied to components when the user is allowed to review but not modify the component. It removes all interactive functions from the component.", meaning that a component in a read-only state is disabled but stays focusable and readable by screen reader services.
Parameters
UI element type.
The MutableInteractionSource associated with the element.
Selection state of the element.
Whether to merge descendants into a single tree.