You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The simplest way to start using the <ApiLinkpkg="core"type="Button" /> is as follows:
104
90
105
91
<PlatformBlockfor="WebComponents">
@@ -130,11 +116,14 @@ The simplest way to start using the <ApiLink pkg="core" type="Button" /> is as f
130
116
131
117
With `prefix` and `suffix` slots of the <ApiLinkpkg="core"type="Button" /> component, we can add different content before and after the main content of the button.
132
118
119
+
We recommend using a `<span>` element when adding simple text, symbols, or emojis, and an [`<igc-icon>`](../layouts/icon.md) component when adding icons to the `prefix` and `suffix` slots.
Setting the <ApiLinkpkg="core"type="Button"member="download"label="Download" /> property will prompt the user to save the linked URL instead of navigating to it.
The {ProductName} chip can be disabled by using the <ApiLinkpkg="core"type="Chip"member="disabled"label="Disabled" /> property.
@@ -235,28 +219,55 @@ The {ProductName} chip can be disabled by using the <ApiLink pkg="core" type="Ch
235
219
236
220
</PlatformBlock>
237
221
238
-
### Prefix / Suffix
222
+
### Slots
239
223
240
-
With the `Prefix` and `Suffix` parts of the <ApiLinkpkg="core"type="Chip" /> component and their slots, we can add different content before and after the main content of the chip. We provide default select and remove icons but you can customize them using the <ApiLinkpkg="core"type="Select" /> and `Remove` slots. You can add additional content before or after the main content, using the `Start` and `End` slots.
224
+
With the exposed component slots, you can add custom content to different parts of the <ApiLinkpkg="core"type="Chip" />. The component provides default select and remove icons, but you can customize them using the `select` and `remove` slots. You can also add additional content before or after the main content using the `start` and `end` slots.
225
+
226
+
We recommend using a `<span>` element when adding simple text, symbols, or emojis, and an [`<igc-icon>`](../layouts/icon.md) component when adding icons to the `remove`, `select`, `start`, and `end` slots.
0 commit comments