diff --git a/src/components/surface/CdrSurface.vue b/src/components/surface/CdrSurface.vue index 960ab9d4e..0a6297dd5 100644 --- a/src/components/surface/CdrSurface.vue +++ b/src/components/surface/CdrSurface.vue @@ -15,7 +15,15 @@ const props = withDefaults(defineProps(), { borderWidth: 'sixteenth-x', modifier: 'default', radius: 'sharp', + /** + * Sets Adds a shadow based on the token options within Cedar. + * @values flat, raised, elevated, floating, lifted + */ shadow: 'flat', + /** + * Sets valid HTML element tag + * @values a, button + */ tag: 'div', withBorder: false, palette: 'default', @@ -25,18 +33,19 @@ const style = useCssModule(); const rootProps = computed(() => { const { classes } = getSurfaceProps(props, 'cdr-surface'); - + const { palette } = props; // Assuming 'palette' is a prop passed to your component return { class: mapClasses(style, ...classes) || undefined, + 'data-palette': palette || undefined, }; }); +