DocsChartsPrimitives
Glyph
React example follows below.
ts
import { Glyph } from "@grassroot/charts-react"; <Glyph x={86} y={74} shape="circle" size={14} fill="var(--accent)" />ts
<script setup lang="ts">import { Glyph } from "@grassroot/charts-vue";</script> <template> <Glyph :x='86' :y='74' shape="circle" :size='14' fill="var(--accent)" /></template>ts
import { ChangeDetectionStrategy, Component } from "@angular/core";import { GrassrootGlyph } from "@grassroot/charts-angular"; @Component({ selector: "app-glyph-chart-demo", standalone: true, imports: [GrassrootGlyph], changeDetection: ChangeDetectionStrategy.OnPush, template: `<grassroot-glyph [x]='86' [y]='74' shape="circle" [size]='14' fill="var(--accent)" />`,})export class GlyphDemoComponent { } export default GlyphDemoComponent;ts
<script lang="ts"> import { Glyph } from "@grassroot/charts-svelte";</script> <Glyph x={86} y={74} shape="circle" size={14} fill="var(--accent)" />ts
/** @jsxImportSource solid-js */import { Glyph } from "@grassroot/charts-solid"; export default function GlyphDemo() { return <Glyph x={86} y={74} shape="circle" size={14} fill="var(--accent)" />;}Installation
bash
pnpm dlx grassroot add chart/glyphbash
npx grassroot@latest add chart/glyphbash
yarn dlx grassroot add chart/glyphbash
bunx grassroot add chart/glyphAPI Reference
| Prop | Type | Default |
|---|---|---|
xrequired | number | — |
yrequired | number | — |
size | number | undefined | — |
shape | GlyphShape | undefined | — |
fill | string | undefined | — |
stroke | string | undefined | — |
className | string | undefined | — |
style | React.CSSProperties | undefined | — |