A UI framework for the Web.
import { AramApp, Box, Title, Text, Button, state } from 'aram'
function App() {
const count = state(0)
return AramApp(
Box({ pad: 24 },
Title({}, 'Hello Aram!'),
Text({}, count.$()),
Button({ onClick: () => count.set(c => c + 1) }, 'Click me')
)
)
}
App()Box- Container with padding, margin, backgroundRow/Column- Flexbox layoutsCenter- Center contentHeader/Section- Semantic containers
Title- Headings with size, weight, colorText- ParagraphsLink- Anchor links
Button- Clickable buttons with stylesInput- Text inputs with events
Image- Lazy loading, async decodingVideo- Controls, autoplay, posterAudio- Full playback controlsDivider/Spacer- Visual separators
For- List renderingIf/Show- Conditional rendering
Spinner/Progress- Loading statesBadge- Labelstoast()- Notifications
state()- Reactive state.$()- Subscribe to changes.set()- Update state
MIT © Aruvili