Skip to content

Commit bfe4357

Browse files
docs(input): add start/end slot section back into v7 docs (#3509)
* docs(input): add start/end slot section back into v7 docs * fix demo imports
1 parent e1711ba commit bfe4357

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

static/usage/v7/input/start-end-slots/demo.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>Input</title>
7-
<link rel="stylesheet" href="../../../common.css" />
8-
<script src="../../../common.js"></script>
7+
<link rel="stylesheet" href="../../common.css" />
8+
<script src="../../common.js"></script>
99
<script type="module" src="https://cdn.jsdelivr.net/npm/@ionic/core@7/dist/ionic/ionic.esm.js"></script>
1010
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ionic/core@7/css/ionic.bundle.css" />
1111
</head>

versioned_docs/version-v7/api/input.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,22 @@ Please submit bug reports with Maskito to the [Maskito Github repository](https:
147147

148148
:::
149149

150+
## Start and End Slots (experimental)
151+
152+
The `start` and `end` slots can be used to place icons, buttons, or prefix/suffix text on either side of the input.
153+
154+
Note that this feature is considered experimental because it relies on a simulated version of [Web Component slots](https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_templates_and_slots). As a result, the simulated behavior may not exactly match the native slot behavior.
155+
156+
:::note
157+
In most cases, [Icon](./icon.md) components placed in these slots should have `aria-hidden="true"`. See the [Icon accessibility docs](https://ionicframework.com/docs/api/icon#accessibility) for more information.
158+
159+
If slot content is meant to be interacted with, it should be wrapped in an interactive element such as a [Button](./button.md). This ensures that the content can be tabbed to.
160+
:::
161+
162+
import StartEndSlots from '@site/static/usage/v7/input/start-end-slots/index.md';
163+
164+
<StartEndSlots />
165+
150166
## Theming
151167

152168
### Colors

0 commit comments

Comments
 (0)