For the select OptGroup #773
Closed
daneyOwner
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
Hey! |
Beta Was this translation helpful? Give feedback.
2 replies
-
The optgroup is now available since v3.35.0 Documentation: https://maz-ui.com/components/maz-select#opt-group Example: <template>
<MazSelect
v-model="optGroupValue"
label="Select option"
:options="optGroup"
multiple
/>
</template>
<script setup lang="ts">
import { ref } from 'vue'
const selectedValue = ref()
const optGroup = [
{ label: 'Basic colors', options: ['primary', 'secondary', 'danger'] },
{ label: 'Custom colors', options: [{ label: 'third', value: 'third' }] },
]
</script> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Add OptGroup that is all ;)
Beta Was this translation helpful? Give feedback.
All reactions