east-ui

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

East UI

UI component library for the East language

License Node Version

East UI provides typed UI component definitions for the East language. Components return data structures describing UI layouts rather than rendering directly, enabling portability across different rendering environments.

Packages

Package Description npm
@elaraai/east-ui Core UI component definitions npm
@elaraai/east-ui-components React rendering with Chakra UI npm
east-ui-preview VSCode extension for live preview Marketplace

Features

  • Layout - Box, Stack, Grid, Splitter, Separator
  • Typography - Text, Code, Heading, Link, Highlight, Mark, List, CodeBlock
  • Buttons - Button, IconButton with variants
  • Forms - Input, Select, Checkbox, Switch, Slider, Textarea, TagsInput, FileUpload
  • Collections - Table, DataList, TreeView
  • Charts - Area, Bar, Line, Pie, Radar, Scatter, Sparkline, BarList, BarSegment
  • Display - Badge, Tag, Avatar, Stat, Icon
  • Feedback - Alert, Progress
  • Disclosure - Accordion, Tabs, Carousel
  • Overlays - Dialog, Drawer, Popover, Tooltip, Menu, HoverCard, ToggleTip, ActionBar

Quick Start

npm install @elaraai/east-ui @elaraai/east
import { East } from "@elaraai/east";
import { Stack, Text, Button, UIComponentType } from "@elaraai/east-ui";

const MyComponent = East.function([], UIComponentType, () => {
    return Stack.Root([
        Text.Root("Hello, World!", { fontSize: "xl", fontWeight: "bold" }),
        Button.Root("Click Me", { variant: "solid", colorPalette: "blue" }),
    ], { gap: "4" });
});

Development

# Install dependencies
npm install

# Build all packages
npm run build

# Run tests
npm test

# Run linter
npm run lint

License

Dual-licensed:

Links


Developed by Elara AI Pty Ltd - Powering the computational layer of AI-driven business optimization.