CLI previewInstall commands shown on this site are not released yet.

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/glyph
bash
npx grassroot@latest add chart/glyph
bash
yarn dlx grassroot add chart/glyph
bash
bunx grassroot add chart/glyph

API Reference

GlyphProps
PropTypeDefault
xrequirednumber
yrequirednumber
sizenumber | undefined
shapeGlyphShape | undefined
fillstring | undefined
strokestring | undefined
classNamestring | undefined
styleReact.CSSProperties | undefined