disabled
Description
Optional. Defines whether a button is disabledUsage
disabled?: boolean;
Parameters
true
- a button is disabledfalse
- (default) a button is enabled
Example
<Button disabled={true}>Click Me</Button>
Details
To disable a button, you can also use the property without a value:
<Button disabled>Click Me</Button>
Related article: Setting the disabled state
Related sample: Button