Skip to content

Commit

Permalink
docs: remove extra content and modify space
Browse files Browse the repository at this point in the history
  • Loading branch information
vtrbo committed Sep 14, 2023
1 parent cb96add commit b771bb8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
2 changes: 0 additions & 2 deletions docs/components/KInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ Add `size` attribute to change the size of Input. It supports `sm`, `md` and `lg
| compositionend | The compositionend event is fired when a text composition system | `(e: CompositionEvent)=> void` |
| compositionInput | Event fired when enable `useCompositionInput` | `(value: Event)=> void` |

> > > > > > > Stashed changes
## Input Slots

| Name | Description |
Expand Down
24 changes: 15 additions & 9 deletions docs/example/input/sizes.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,25 @@
</script>

<div class="fac my-10px">
<KInput cls="w-50" size="sm" placeholder="Please input"></KInput>
<KInput cls="w-50" size="md" placeholder="Please input"></KInput>
<KInput cls="w-50" size="lg" placeholder="Please input"></KInput>
<KInput cls="w-50 px-2" size="sm" placeholder="Please input"></KInput>
<KInput cls="w-50 px-2" size="md" placeholder="Please input"></KInput>
<KInput cls="w-50 px-2" size="lg" placeholder="Please input"></KInput>
</div>

<div class="fac my-10px">
<KInput cls="w-50" size="sm" iconPrefix="i-carbon-search" placeholder="Please input"></KInput>
<KInput cls="w-50" size="md" iconPrefix="i-carbon-search" placeholder="Please input"></KInput>
<KInput cls="w-50" size="lg" iconPrefix="i-carbon-search" placeholder="Please input"></KInput>
<KInput cls="w-50 px-2" size="sm" iconPrefix="i-carbon-search" placeholder="Please input"
></KInput>
<KInput cls="w-50 px-2" size="md" iconPrefix="i-carbon-search" placeholder="Please input"
></KInput>
<KInput cls="w-50 px-2" size="lg" iconPrefix="i-carbon-search" placeholder="Please input"
></KInput>
</div>

<div class="fac my-10px">
<KInput cls="w-50" size="sm" iconSuffix="i-carbon-search" placeholder="Please input"></KInput>
<KInput cls="w-50" size="md" iconSuffix="i-carbon-search" placeholder="Please input"></KInput>
<KInput cls="w-50" size="lg" iconSuffix="i-carbon-search" placeholder="Please input"></KInput>
<KInput cls="w-50 px-2" size="sm" iconSuffix="i-carbon-search" placeholder="Please input"
></KInput>
<KInput cls="w-50 px-2" size="md" iconSuffix="i-carbon-search" placeholder="Please input"
></KInput>
<KInput cls="w-50 px-2" size="lg" iconSuffix="i-carbon-search" placeholder="Please input"
></KInput>
</div>

0 comments on commit b771bb8

Please sign in to comment.