ICONYZ
English
Bus icon from BoxIcons v2 Solid

Bus icon

bxs:bus

The Bus icon (bxs:bus) is a free SVG icon from the BoxIcons v2 Solid set by Boxicons. It is drawn on a 24 × 24 grid. BoxIcons v2 Solid icons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
BoxIcons v2 Solid
Author
Boxicons
License
MIT
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M21 6.021c.003-.146-.007-1.465-1.3-2.735C18.427 2.036 17.143 2 17 2H6.996c-.239 0-1.493.063-2.708 1.302C3.036 4.578 3 5.859 3 6v3H2v3h1v6c0 .734.406 1.373 1 1.721V21a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1h10v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1.277A1.99 1.99 0 0 0 21 18v-6h1V9h-1zM9 4h6v2H9zM6.5 18a1.5 1.5 0 1 1 .001-3.001A1.5 1.5 0 0 1 6.5 18m4.5-5H5V8h6zm6.5 5a1.5 1.5 0 1 1 .001-3.001A1.5 1.5 0 0 1 17.5 18m1.5-5h-6V8h6z"/></svg>

How to use the Bus icon

React

import { Icon } from "@iconify/react";

<Icon icon="bxs:bus" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="bxs:bus" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="bxs:bus" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[bxs--bus]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/bxs -->
<div class="i-bxs:bus"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="bxs:bus"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/bxs/bus.svg" alt="Bus icon" width="24" height="24">

Related icons in BoxIcons v2 Solid

Bus icon in other icon sets

Bus icon FAQ

Is the Bus icon free for commercial use?

Yes. BoxIcons v2 Solid icons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Bus icon in React?

Install @iconify/react and render <Icon icon="bxs:bus" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Bus icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/bxs/bus.svg" alt="Bus icon">, or paste the SVG code inline to style it with CSS.

Browse all BoxIcons v2 Solid icons →