<markdown>
# 图标

添加图标
</markdown>

<script lang="ts" setup>
import { MdSearch } from '@vicons/ionicons4'
</script>

<template>
  <n-input placeholder="搜索" clearable>
    <template #prefix>
      <n-icon>
        <MdSearch />
      </n-icon>
    </template>
  </n-input>
  <n-input placeholder="搜索" clearable>
    <template #suffix>
      DOLLAR
    </template>
  </n-input>
  <n-input round placeholder="搜索" size="small" clearable>
    <template #suffix>
      <n-icon>
        <MdSearch />
      </n-icon>
    </template>
    <template #prefix>
      <n-icon>
        <MdSearch />
      </n-icon>
    </template>
  </n-input>
  <n-input placeholder="搜索" size="large" clearable>
    <template #suffix>
      <n-icon>
        <MdSearch />
      </n-icon>
    </template>
    <template #prefix>
      <n-icon>
        <MdSearch />
      </n-icon>
    </template>
  </n-input>
  <n-input placeholder="搜索" size="small" clearable>
    <template #suffix>
      <n-icon>
        <MdSearch />
      </n-icon>
    </template>
    <template #prefix>
      <n-icon>
        <MdSearch />
      </n-icon>
    </template>
  </n-input>
  <n-input placeholder="搜索" pair size="large" separator="-" clearable>
    <template #suffix>
      <n-icon>
        <MdSearch />
      </n-icon>
    </template>
    <template #prefix>
      <n-icon>
        <MdSearch />
      </n-icon>
    </template>
  </n-input>
  <n-input placeholder="搜索" pair size="small" separator="-" clearable>
    <template #suffix>
      <n-icon>
        <MdSearch />
      </n-icon>
    </template>
    <template #prefix>
      <n-icon>
        <MdSearch />
      </n-icon>
    </template>
  </n-input>
  <n-input round placeholder="搜索" size="large" clearable>
    <template #suffix>
      <n-icon>
        <MdSearch />
      </n-icon>
    </template>
    <template #prefix>
      <n-icon>
        <MdSearch />
      </n-icon>
    </template>
  </n-input>
  <n-input round placeholder="搜索" clearable>
    <template #suffix>
      <n-icon>
        <MdSearch />
      </n-icon>
    </template>
  </n-input>
</template>

<style>
.n-input {
  margin-bottom: 8px;
}
</style>
