Spacebar icon

Used to represent keyboard spacebar on scenarios. The Spacebar icon is part of Microsoft's Fluent UI System Icons, available here in filled and regular (outlined) styles on a 24 px grid. Download it as SVG or PNG, or copy it as code — it's free to use under the MIT License.

Regular (outlined)

SVG

Filled

SVG

Use the Spacebar icon in React

Install Microsoft's @fluentui/react-icons package, then import the component. Icons inherit the current text color, and you can size them with CSS.

npm install @fluentui/react-icons

import { Spacebar24Regular, Spacebar24Filled } from "@fluentui/react-icons";

export function Example() {
  return <Spacebar24Regular aria-label="Spacebar" />;
}

Use it in HTML

Reference the SVG file directly:

<img src="https://fluenticons.co/icons/ic_fluent_spacebar_24_regular.svg" width="24" height="24" alt="Spacebar">

Or paste the SVG markup inline. Setting fill="currentColor" makes the icon follow the text color of its parent:

<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.5 11V13C20.5 13.1381 20.3881 13.25 20.25 13.25H3.75C3.61193 13.25 3.5 13.1381 3.5 13V11C3.5 10.5858 3.16421 10.25 2.75 10.25C2.33579 10.25 2 10.5858 2 11C2 11.4444 2 12.1111 2 13C2 13.9665 2.7835 14.75 3.75 14.75H20.25C21.2165 14.75 22 13.9665 22 13V11C22 10.5858 21.6642 10.25 21.25 10.25C20.8358 10.25 20.5 10.5858 20.5 11Z" fill="currentColor"/></svg>

Use it from the SVG package

Microsoft's @fluentui/svg-icons package contains the raw SVG files, which works well with bundlers that import SVGs:

npm install @fluentui/svg-icons

import icon from "@fluentui/svg-icons/icons/spacebar_24_regular.svg";

Details

NameSpacebar
StylesRegular (outlined), Filled
Size24 × 24 px (scalable SVG)
Regular (outlined) fileic_fluent_spacebar_24_regular.svg
Filled fileic_fluent_spacebar_24_filled.svg
React componentsSpacebar24Regular, Spacebar24Filled
LicenseMIT (© Microsoft Corporation)

Keywords

keyboardtypekeydeviceanalog

Related icons