Skip to content

Commit

Permalink
docs: use shorthand for named slots usage in docs [KHCP-11488] (#2135)
Browse files Browse the repository at this point in the history
* docs: use shorthand for named slots usage in docs [KHCP-11488]

* docs(KCatalog): add the custom classes used to the example code too

* revert(KCatalog): changes in KCatalog docs
  • Loading branch information
vaibhavrajsingh2001 authored and adamdehaven committed Jun 15, 2024
1 parent 913409f commit a880c61
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 102 deletions.
12 changes: 6 additions & 6 deletions docs/components/icon.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ You can read more about the viewBox attribute

<div class="spacing-container">
<KIcon icon="check" size="48px" color="url('#linear-gradient')">
<template v-slot:svgElements>
<template #svgElements>
<defs>
<linearGradient id="linear-gradient" x1="0" x2="1">
<stop offset="0%" stop-color="#16BDCC" />
Expand All @@ -184,7 +184,7 @@ You can read more about the viewBox attribute
</KIcon>

<KIcon icon="search" size="48px" color="url('#linear-gradient2')">
<template v-slot:svgElements>
<template #svgElements>
<defs>
<linearGradient id="linear-gradient2" gradientTransform="rotate(90)">
<stop offset="10%" stop-color="gold" />
Expand All @@ -195,7 +195,7 @@ You can read more about the viewBox attribute
</KIcon>

<KIcon icon="cogwheel" size="48px" color="dark-grey">
<template v-slot:svgElements>
<template #svgElements>
<animateTransform
attributeName="transform"
type="rotate"
Expand All @@ -210,7 +210,7 @@ You can read more about the viewBox attribute

```html
<KIcon icon="check" size="48px" color="url('#linear-gradient')">
<template v-slot:svgElements>
<template #svgElements>
<defs>
<linearGradient id="linear-gradient" x1="0" x2="1">
<stop offset="0%" stop-color="#16BDCC" />
Expand All @@ -222,7 +222,7 @@ You can read more about the viewBox attribute
</KIcon>

<KIcon icon="search" size="48px" color="url('#linear-gradient2')">
<template v-slot:svgElements>
<template #svgElements>
<defs>
<linearGradient id="linear-gradient2" gradientTransform="rotate(90)">
<stop offset="10%" stop-color="gold" />
Expand All @@ -233,7 +233,7 @@ You can read more about the viewBox attribute
</KIcon>

<KIcon icon="cogwheel" size="48px" color="dark-grey">
<template v-slot:svgElements>
<template #svgElements>
<animateTransform
attributeName="transform"
type="rotate"
Expand Down
Loading

0 comments on commit a880c61

Please sign in to comment.