Sections
Components
- AlertBanner
- AlertDialog
- Alert
- Avatar
- Badge
- Breadcrumb
- Button
- CalendarIcon
- CellLayout
- CellLink
- Checkbox
- Collapse
- ContentSwitcher
- ControlLabel
- DatePicker
- Dialog
- Divider
- Drawer
- EmptyCell
- EmptyState
- Empty
- ErrorOverlay
- FilterBar
- FilterChips
- Flex
- GridLayout
- HumanisedDate
- Icon
- InputDuration
- InputField
- Input
- Label
- Loader
- MoreActions
- NumberInput
- OutsideClickHandler
- PageLoader
- Page
- Popconfirm
- Popover
- ProgressPie
- Progress
- RadioButtonGroup
- RadioGroup
- Radio
- RelativeTime
- Resizable
- SearchInput
- Select
- SkeletonText
- Skeleton
- Space
- SquadAvatarList
- StatusPicker
- Stepper
- Switch
- TableLight
- Tabs
- Tag
- Text
- Textarea
- Toast
- Tooltip
- TriggerSelect
- Upload
Marketplace widgets (React template)#
- Expose webpack React on the window before init:
import React from "react";
import * as ReactDOM from "react-dom";
import { createRoot } from "react-dom/client";
window.React = React;
window.ReactDOM = { ...ReactDOM, createRoot };
-
Call
await rliSdk.init({})— the SDK loadsrl-ui.jsfrom the CDN. CSS is auto-injected. -
Import components through the template bridge:
import { Button, Dialog, Page, Text } from "@/rl-ui";
export function MyWidget() {
return (
<Page className="p-5">
<Text variant="heading-03">Ready</Text>
<Button variant="primary">Save</Button>
</Page>
);
}
HTML / vanilla#
Load React UMD, then rl-ui.js, then mount with createRoot:
<script src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
<script src="https://rli-sdk.s3.us-east-1.amazonaws.com/rl-ui.js"></script>
<script>
window.rliSdk.init({}).then(() => {
const root = ReactDOM.createRoot(document.getElementById("root"));
const { Page, Text, Button } = window.RocketlaneRlUi;
root.render(
React.createElement(
Page,
{ className: "p-5" },
React.createElement(Text, { variant: "heading-03" }, "Ready"),
React.createElement(Button, { variant: "primary" }, "Save")
)
);
});
</script>
Docs previews use the same IIFE and mount components with createRoot.