Center Vertical icon
Used to center align content. Contains orientation variants. The Center Vertical 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.
Use the Center Vertical 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 { CenterVertical24Regular, CenterVertical24Filled } from "@fluentui/react-icons";
export function Example() {
return <CenterVertical24Regular aria-label="Center Vertical" />;
}Use it in HTML
Reference the SVG file directly:
<img src="https://fluenticons.co/icons/ic_fluent_center_vertical_24_regular.svg" width="24" height="24" alt="Center Vertical"> 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="M21 3.75C21 4.16421 20.6642 4.5 20.25 4.5H3.75C3.33579 4.5 3 4.16421 3 3.75C3 3.33579 3.33579 3 3.75 3H20.25C20.6642 3 21 3.33579 21 3.75ZM21 20.25C21 20.6642 20.6642 21 20.25 21H3.75C3.33579 21 3 20.6642 3 20.25C3 19.8358 3.33579 19.5 3.75 19.5H20.25C20.6642 19.5 21 19.8358 21 20.25ZM7.25 8C6.00736 8 5 9.00736 5 10.25V13.75C5 14.9926 6.00736 16 7.25 16H16.75C17.9926 16 19 14.9926 19 13.75V10.25C19 9.00736 17.9926 8 16.75 8H7.25ZM6.5 10.25C6.5 9.83579 6.83579 9.5 7.25 9.5H16.75C17.1642 9.5 17.5 9.83579 17.5 10.25V13.75C17.5 14.1642 17.1642 14.5 16.75 14.5H7.25C6.83579 14.5 6.5 14.1642 6.5 13.75V10.25Z" 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/center_vertical_24_regular.svg";Details
| Name | Center Vertical |
|---|---|
| Styles | Regular (outlined), Filled |
| Size | 24 × 24 px (scalable SVG) |
| Regular (outlined) file | ic_fluent_center_vertical_24_regular.svg |
| Filled file | ic_fluent_center_vertical_24_filled.svg |
| React components | CenterVertical24Regular, CenterVertical24Filled |
| License | MIT (© Microsoft Corporation) |