Skip to content

Update radio topic for React 19 #1576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: vnext
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions doc/en/components/inputs/radio.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ npm install igniteui-react
You will then need to import the `Radio` and the `RadioGroup`, its necessary CSS, and register its module, like so:

```tsx
import { IgrRadioModule, IgrRadio, IgrRadioGroupComponent, IgrRadioGroupModule } from 'igniteui-react';
import { IgrRadio, IgrRadioGroupComponent } from 'igniteui-react';
import 'igniteui-webcomponents/themes/light/bootstrap.css';
IgrRadioModule.register();
IgrRadioGroupModule.register();
```
<!-- end: React -->

Expand Down Expand Up @@ -147,7 +145,7 @@ The `Radio` can also be labelled by elements external to it. In this case the us

```tsx
<span id="radio-label">Label</span>
<IgrRadio ariaLabelledby="radio-label"></IgrRadio>
<IgrRadio aria-labelledby="radio-label"></IgrRadio>
```

```html
Expand All @@ -171,7 +169,7 @@ You can use the `checked` attribute to toggle on the radio.
```tsx
<IgrRadioGroup>
<IgrRadio value="apple"><span>Apple</span></IgrRadio>
<IgrRadio value="banana" checked="true"><span>Banana</span></IgrRadio>
<IgrRadio value="banana" checked={true}><span>Banana</span></IgrRadio>
<IgrRadio value="Mango"><span>Mango</span></IgrRadio>
<IgrRadio value="orange"><span>Orange</span></IgrRadio>
</IgrRadioGroup>
Expand Down Expand Up @@ -204,7 +202,7 @@ You can use the `checked` attribute to toggle on the radio.
You can use the `invalid` attribute to mark the radio as invalid.

```tsx
<IgrRadio invalid="true"></IgrRadio>
<IgrRadio invalid={true}></IgrRadio>
```

```html
Expand All @@ -226,7 +224,7 @@ You can use the `disabled` attribute to disable the radio.
```tsx
<IgrRadioGroup>
<IgrRadio value="apple"><span>Apple</span></IgrRadio>
<IgrRadio value="banana" disabled="true"><span>Banana</span></IgrRadio>
<IgrRadio value="banana" disabled={true}><span>Banana</span></IgrRadio>
<IgrRadio value="Mango"><span>Mango</span></IgrRadio>
<IgrRadio value="orange"><span>Orange</span></IgrRadio>
</IgrRadioGroup>
Expand Down Expand Up @@ -261,7 +259,7 @@ The `RadioGroup` allows you to easily change the placement directionality of the
```tsx
<IgrRadioGroup alignment="horizontal">
<IgrRadio value="apple"><span>Apple</span></IgrRadio>
<IgrRadio value="banana" disabled="true"><span>Banana</span></IgrRadio>
<IgrRadio value="banana" disabled={true}><span>Banana</span></IgrRadio>
<IgrRadio value="Mango"><span>Mango</span></IgrRadio>
<IgrRadio value="orange"><span>Orange</span></IgrRadio>
</IgrRadioGroup>
Expand Down