gentleface

Gentleface › Development › variable

variable icon

Variable: variable, template variable, merge field, dynamic field. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M2.198 3.638C2.541 3.049 2.932 2.57 3.371 2.201L4.699 2.201C4.235 2.63 3.829 3.131 3.481 3.703C3.132 4.274 2.864 4.882 2.675 5.527C2.486 6.172 2.391 6.821 2.391 7.474L2.391 8.506C2.391 9.168 2.488 9.826 2.681 10.479C2.874 11.132 3.143 11.74 3.487 12.303C3.831 12.866 4.235 13.354 4.699 13.766L3.358 13.766C2.945 13.405 2.565 12.933 2.217 12.348C1.869 11.763 1.59 11.097 1.379 10.35C1.168 9.602 1.063 8.811 1.063 7.977C1.063 7.143 1.166 6.359 1.372 5.624C1.579 4.889 1.854 4.227 2.198 3.638ZM13.796 12.342C13.448 12.931 13.059 13.405 12.629 13.766L11.314 13.766C11.778 13.354 12.182 12.862 12.526 12.29C12.87 11.719 13.136 11.108 13.325 10.459C13.514 9.81 13.609 9.159 13.609 8.506L13.609 7.474C13.609 6.812 13.514 6.157 13.325 5.508C13.136 4.859 12.87 4.25 12.526 3.683C12.182 3.116 11.778 2.622 11.314 2.201L12.642 2.201C13.072 2.57 13.459 3.047 13.803 3.632C14.146 4.217 14.421 4.878 14.628 5.617C14.834 6.356 14.937 7.143 14.937 7.977C14.937 8.811 14.834 9.6 14.628 10.343C14.421 11.086 14.144 11.753 13.796 12.342ZM7.201 7.609L4.905 4.295L6.53 4.295L8.039 6.629L8.077 6.629L9.612 4.295L11.12 4.295L8.825 7.596L11.159 11L9.534 11L7.987 8.563L7.948 8.563L6.337 11L4.841 11L7.201 7.609Z"/></svg>
React
// Gentleface "variable" (line-round), MIT. https://gentleface.com/icons/variable
import type { SVGProps } from 'react';

export function VariableIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M2.198 3.638C2.541 3.049 2.932 2.57 3.371 2.201L4.699 2.201C4.235 2.63 3.829 3.131 3.481 3.703C3.132 4.274 2.864 4.882 2.675 5.527C2.486 6.172 2.391 6.821 2.391 7.474L2.391 8.506C2.391 9.168 2.488 9.826 2.681 10.479C2.874 11.132 3.143 11.74 3.487 12.303C3.831 12.866 4.235 13.354 4.699 13.766L3.358 13.766C2.945 13.405 2.565 12.933 2.217 12.348C1.869 11.763 1.59 11.097 1.379 10.35C1.168 9.602 1.063 8.811 1.063 7.977C1.063 7.143 1.166 6.359 1.372 5.624C1.579 4.889 1.854 4.227 2.198 3.638ZM13.796 12.342C13.448 12.931 13.059 13.405 12.629 13.766L11.314 13.766C11.778 13.354 12.182 12.862 12.526 12.29C12.87 11.719 13.136 11.108 13.325 10.459C13.514 9.81 13.609 9.159 13.609 8.506L13.609 7.474C13.609 6.812 13.514 6.157 13.325 5.508C13.136 4.859 12.87 4.25 12.526 3.683C12.182 3.116 11.778 2.622 11.314 2.201L12.642 2.201C13.072 2.57 13.459 3.047 13.803 3.632C14.146 4.217 14.421 4.878 14.628 5.617C14.834 6.356 14.937 7.143 14.937 7.977C14.937 8.811 14.834 9.6 14.628 10.343C14.421 11.086 14.144 11.753 13.796 12.342ZM7.201 7.609L4.905 4.295L6.53 4.295L8.039 6.629L8.077 6.629L9.612 4.295L11.12 4.295L8.825 7.596L11.159 11L9.534 11L7.987 8.563L7.948 8.563L6.337 11L4.841 11L7.201 7.609Z" />
    </svg>
  );
}
Vue
Vue: see /icons/variable.md
Svelte
Svelte: see /icons/variable.md
HTML img
HTML img: see /icons/variable.md
CSS
CSS: see /icons/variable.md
Data URL
Data URL: see /icons/variable.md
Sprite
Sprite: see /icons/variable.md
SwiftUI
SwiftUI: see /icons/variable.md
Compose
Compose: see /icons/variable.md
Android XML
Android XML: see /icons/variable.md
Flutter
Flutter: see /icons/variable.md

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

With npm: import { VariableIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
variable, template variable, merge field, dynamic field, variable group, merge tag, personalization token, key value
Alternatives
  • function: a function or formula (formula)
  • braces: a JSON object (object)
Don’t confuse with
  • placeholder: a layout placeholder box (empty-slot), not a template variable
Tags
variable, template-variable, placeholder, parameter, x, parentheses, code, developer, programming
Category
Development
Component name
VariableIcon
History
  • added, released in 0.1.0
  • 20 px drawn, 24 px drawn
  • 20 px redrawn, 24 px redrawn
  • 16 px redrawn
Since
version 0.1.0

Family 2

More development icons

For agents

Metadata: /icons/variable.json · Markdown: /icons/variable.md · SVG: https://gentleface.com/svg/{style}/16/variable.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/variable.png