Skip to content

Commit

Permalink
fix: address pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
portikM committed Nov 13, 2024
1 parent 96aa3d2 commit ca9f295
Showing 1 changed file with 31 additions and 8 deletions.
39 changes: 31 additions & 8 deletions docs/components/radio.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ Accepted values are `vertical` (shown above) or `horizontal`. Defaults to `verti
card-orientation="horizontal"
v-model="cardRadio"
description="Choose this option if you want your APIs to be publicly accessible by anyone on the internet."
card
label="Public"
card
selected-value="public"
/>
```
Expand All @@ -225,22 +225,44 @@ Accepted values are `vertical` (shown above) or `horizontal`. Defaults to `verti

Prop to show or hide radio button in card. Default value is `true`.

Vertical:
<div class="cards-container">
<KRadio
v-model="showRadioVertical"
card
:card-radio-visible="false"
description="Choose this option if you want your APIs to only be accessible from within your private network."
label="Private"
:selected-value="false"
/>
<KRadio
v-model="showRadioVertical"
card
:card-radio-visible="false"
description="Choose this option if you want your APIs to be publicly accessible by anyone on the internet."
label="Public"
:selected-value="true"
/>
</div>

Horizontal:
<div class="vertical-spacing">
<KRadio
v-model="showRadio"
v-model="showRadioHorizontal"
card
card-orientation="horizontal"
:card-radio-visible="false"
label="Vertical"
description="Vertical radio card with hidden radio button."
description="Choose this option if you want your APIs to only be accessible from within your private network."
label="Private"
:selected-value="false"
/>
<KRadio
v-model="showRadio"
v-model="showRadioHorizontal"
card
card-orientation="horizontal"
:card-radio-visible="false"
label="Horizontal"
description="Horizontal radio card with hidden radio button."
description="Choose this option if you want your APIs to be publicly accessible by anyone on the internet."
label="Public"
:selected-value="true"
/>
</div>
Expand Down Expand Up @@ -361,7 +383,8 @@ const cardRadio = ref<string>('')

const horizontalCard = ref<string>('')

const showRadio = ref<boolean | null>(null)
const showRadioVertical = ref<boolean | null>(null)
const showRadioHorizontal = ref<boolean | null>(null)

const labelPropRadio = ref<boolean>(false)

Expand Down

0 comments on commit ca9f295

Please sign in to comment.