diff --git a/docs/app/components/content/ComponentExample.vue b/docs/app/components/content/ComponentExample.vue index b9f4691a..a03664fa 100644 --- a/docs/app/components/content/ComponentExample.vue +++ b/docs/app/components/content/ComponentExample.vue @@ -47,6 +47,10 @@ const props = withDefaults(defineProps<{ * A list of line numbers to highlight in the code block */ highlights?: number[] + /** + * Whether to add overflow-hidden to wrapper + */ + overflowHidden?: boolean }>(), { preview: true, source: true @@ -119,13 +123,13 @@ const optionsValues = ref(props.options?.reduce((acc, option) => { return acc }, {} as Record) || {}) -const urlSearchParams = computed(() => new URLSearchParams(optionsValues.value).toString()) +const urlSearchParams = computed(() => new URLSearchParams({ ...optionsValues.value, ...componentProps }).toString())