Displaying errors with FloatingLabelInput
### Describe the bug
I have the following:
```
<section>
<FloatingLabelInput
inputStyle="filled"
>
Floating label
</FloatingLabelInput>
<Helper class="pt-2" color="primary">
Error here?
</Helper>
</section>
```
### Reproduction
How should I display an error message?
### Version and System Info
```shell
System:
OS: Linux 6.1 LMDE 6 (faye) 6 (faye)
CPU: (24) x64 13th Gen Intel(R) Core(TM) i7-13700KF
Memory: 34.90 GB / 62.63 GB
Container: Yes
Shell: 5.2.15 - /bin/bash
Binaries:
Node: 22.1.0 - ~/.volta/tools/image/node/22.1.0/bin/node
npm: 10.7.0 - ~/.volta/tools/image/node/22.1.0/bin/npm
pnpm: 9.12.3 - ~/.volta/bin/pnpm
bun: 1.1.34 - ~/.volta/bin/bun
Browsers:
Chrome: 131.0.6778.85
Chromium: 130.0.6723.116
npmPackages:
@sveltejs/adapter-auto: ^3.3.1 => 3.3.1
@sveltejs/kit: ^2.8.1 => 2.8.1
@sveltejs/vite-plugin-svelte: ^4.0.1 => 4.0.1
svelte: ^5.2.5 => 5.2.5
vite: ^5.4.11 => 5.4.11
```
关闭于 2024-11-21 1 条评论