Components
One design system, drawn natively everywhere
Every OpenVibe component is described by what it is: its parts, the tokens they wear, its states, and how it reads to a screen reader. The web draws it with the kit; an Android or iOS app draws the same component with its own views, so an app is never a web page in a frame.
Notice
A line in the page that tells the person what happened: ok, info, warn, or an error (announced at once).
Notices
Saved. Every OpenVibe site follows.
That name is taken. Try another.
Parts and their tokens
- iconsize
size.icon - textcolor
color.text.primary
How it behaves
- Role
- status, or alert for errors
- Props
kindtext* * required- States
- default
- Name
- its text
- Keys
- none; errors are announced
- Phone
- full width
- Computer
- in its column
- kind
okcolor.status.ok.textinfocolor.status.info.textwarncolor.status.warn.texterrorcolor.status.bad.text, role alert
Code
The same component as data: a server sends this, the web renders it with kit.notice, and a native app with its own view.
// A kit document (JSON). The web renders it with openvibe-shared/components:
// components.render(doc, kit) → kit.notice(…)
{
"type": "section",
"props": {
"title": "Notices"
},
"children": [
{
"type": "notice",
"props": {
"kind": "ok",
"text": "Saved. Every OpenVibe site follows."
}
},
{
"type": "notice",
"props": {
"kind": "error",
"text": "That name is taken. Try another."
}
}
]
}Shared interfaces
Web, Android and iOS definitions for the navigation, composer, sheets, settings and motion used across OpenVibe. See the whole registry, or read it as JSON at /api/v1/components.
Kit documents: screens as data
A screen can be sent as a tree of these components, for example { "type": "rail", "children": [{ "type": "card", … }] }. Every OpenVibe client renders the same document with its own views, so a screen can change without an app release (the server-driven UI pattern of Airbnb and DivKit). Documents are checked strictly: known components and props only, typed values, which children each takes, a size limit, and https or same-site links.