API Reference¶
SDK classes, functions and parameters, plus the nib CLI. A page explains its topic and lists the constructor, parameters, mutable properties and callbacks, with examples. How nib works underneath is under Concepts.
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, SettingsWindow, 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 |