|
@@ -37,8 +37,6 @@ import { Radio } from '@douyinfe/semi-ui';
|
|
|
|
|
|
You can use `extra` to add extra information, which can be any type of ReactNode.
|
|
|
|
|
|
-> `extra` >= v0.25.0
|
|
|
-
|
|
|
```jsx live=true
|
|
|
import React from 'react';
|
|
|
import { Radio } from '@douyinfe/semi-ui';
|
|
@@ -379,18 +377,18 @@ class App extends React.Component {
|
|
|
| addonId | id of addon node, aria-labelledby refers to this id, if not set, it will generate an id randomly <br/>**provided after v2.11.0** | string | |
|
|
|
| addonStyle | inline style of content wrapper<br/>**provided after v1.16.0** | object | |
|
|
|
| aria-label | Label of Radio | string | - |
|
|
|
-| name | The `name` attribute passed to `input[type="radio"]` in the Radio component, Radios with the same `name` belong to the same RadioGroup,The `name` attribute can refer to [MDN Radio](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input/radio#value) | string | - |
|
|
|
| autoFocus | Automatically focus the form control when the page is loaded | boolean | false |
|
|
|
| checked | Specify whether it is currently selected | boolean | false |
|
|
|
-| type | Set the type of radio, one of `default`, `button`, `card`, `pureCard` <br/>**This api is provided after v2.18.0**| string | `default` |
|
|
|
| className | Class name | string | |
|
|
|
| defaultChecked | Checked by default | boolean | false |
|
|
|
| disabled | Disable the radio | boolean | false |
|
|
|
-| extra | Extra information displayed <br/>**provided after v0.25.0** | ReactNode | - |
|
|
|
+| extra | Extra information displayed | ReactNode | - |
|
|
|
| extraId | id of extra node. aria-describedby refers to this id, if not set, it will randomly generate an id <br/>**provided after v2.11.0** | ReactNode | - |
|
|
|
| mode | In advanced mode, options can be clicked to uncheck, one of `advanced` | string | - |
|
|
|
+| name | The `name` attribute passed to `input[type="radio"]` in the Radio component, Radios with the same `name` belong to the same RadioGroup,The `name` attribute can refer to [MDN Radio](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input/radio#value) | string | - |
|
|
|
| preventScroll | Indicates whether the browser should scroll the document to display the newly focused element, acting on the focus method inside the component, excluding the component passed in by the user | boolean | | |
|
|
|
| style | Inline style | CSSProperties | |
|
|
|
+| type | Set the type of radio, one of `default`, `button`, `card`, `pureCard` <br/>**This api is provided after v2.18.0**| string | `default` |
|
|
|
| value | Compared based on value to determine whether the option is selected | string \| number | - |
|
|
|
| onChange | Callback function when the selected option changes | Function (e: Event) | - |
|
|
|
| onMouseEnter | The callback function when the mouse moves into the option | function(e:Event) | - |
|