@balikjs/mobile
v0.1.5
Published
A mobile-first UI component library built on top of Ark UI for Solid.js
Downloads
1,193
Readme
@balikjs/mobile
A mobile-first UI component library built on top of Ark UI for Solid.js.
Design Principles
- JavaScript only — No TypeScript. Plain modern JavaScript with JSDoc for type hints.
- Modern JavaScript — ES2020+ syntax.
const/let, arrow functions, optional chaining, nullish coalescing, destructuring, template literals. - ES Modules —
type: "module"inpackage.json.import/exporteverywhere. No CommonJS. - Vite ecosystem — Built with Vite, tested with Vitest.
- CSS Modules + tokens — Styles authored with CSS Modules. Design tokens as CSS custom properties.
Install
npm install @balikjs/mobile solid-js @ark-ui/solidUsage
import { Button, Toast, toast } from '@balikjs/mobile'
import '@balikjs/mobile/styles.css'
function App() {
return (
<>
<Toast />
<Button solid onClick={() => toast('Saved!')}>Click me</Button>
</>
)
}