Skip to content

Commit e3ca4fe

Browse files
committed
docs: classes to phone-input
1 parent 7aa4b35 commit e3ca4fe

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/routes/docs/forms/phone-input.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,18 @@ Use this example to verify a phone number via SMS or phone call using a dropdown
301301
</form>
302302
```
303303

304+
## Classes
305+
306+
The PhoneInput component provides customizable styling through six distinct class slots: `defaultDiv` for the icon container positioning, `phonesvg` for the phone icon styling, `defaultInput` for the standard input field appearance, `floatingSpan` for floating label positioning, `floatingInput` for the floating variant input styling, and `labelFloating` for animated label transitions. Each class can be overridden using the classes prop to customize the component's appearance.
307+
308+
```svelte example hideScript
309+
<script>
310+
import { PhoneInput } from "flowbite-svelte";
311+
</script>
312+
313+
<PhoneInput aria-describedby="helper-text-explanation" id="phone-input" placeholder="123-456-7890" required classes={{ defaultInput: "border-blue-500", defaultDiv:"ps-4"}}/>
314+
```
315+
304316
## See also
305317

306318
<Seealso links={relatedLinks} />

0 commit comments

Comments
 (0)