diff --git a/docs/app/components/content/ComponentExample.vue b/docs/app/components/content/ComponentExample.vue index 348fb601..cd3c97c8 100644 --- a/docs/app/components/content/ComponentExample.vue +++ b/docs/app/components/content/ComponentExample.vue @@ -5,6 +5,11 @@ import { get, set } from '#ui/utils' const props = withDefaults(defineProps<{ name: string class?: any + /** + * Whether to render the component in an iframe + * @defaultValue false + */ + iframe?: boolean | { [key: string]: any } props?: { [key: string]: any } /** * Whether to format the code with Prettier @@ -112,6 +117,8 @@ const optionsValues = ref(props.options?.reduce((acc, option) => { } return acc }, {} as Record) || {}) + +const urlSearchParams = computed(() => new URLSearchParams(optionsValues.value).toString())