API Reference

SDK classes, functions and parameters, plus the nib CLI. Each page: constructor, parameters, mutable properties, callbacks, example. How-to pages are under Guides.

Views

All views subclass View. Children go in controls=. Layout, style, animation and callbacks are constructor arguments.

Section Views
Controls Text, Button, TextField, Toggle, Slider, Picker, Image, Video, Table, Map, WebView and more
Layout VStack, HStack, ZStack, ScrollView, List, Section, Form, Grid, NavigationStack and more
Shapes Rectangle, RoundedRectangle, Circle, Ellipse, Capsule, Path & Shape, Gradients
Charts Chart with LineMark, BarMark, AreaMark, PointMark, RuleMark, RectMark, SectorMark
Effects VisualEffectBlur, Canvas

Shared constructor arguments: Modifiers. key= and ref=: Views and Events.

Other modules

Section Contents
Core App, run(), MenuItem, State, Settings, UserDefaults, FilePicker, SettingsPage, Ref, logger
Modifiers Constructor arguments shared by all views
Types & Enums Color, Font, Animation, Transition, TextStyle, Offset, CornerRadius, enums
Draw Module nib.draw commands for Canvas
Services app.battery, app.connectivity, app.screen, app.keychain, app.camera, app.launch_at_login, app.permissions
Notifications Notification, NotificationManager, sounds, actions
CLI nib create, nib run, nib build, pyproject.toml options