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
import { MoreActions, DropdownMenuItem } from "@/rl-ui";
<MoreActions tooltipText="More">
<DropdownMenuItem>Edit</DropdownMenuItem>
<DropdownMenuItem danger>Delete</DropdownMenuItem>
</MoreActions>Examples#
Menu side#
import { MoreActions, DropdownMenuItem } from "@/rl-ui";
<MoreActions side="right" align="start" tooltipText="Actions">
<DropdownMenuItem>Duplicate</DropdownMenuItem>
<DropdownMenuItem>Share</DropdownMenuItem>
</MoreActions>API#
| Prop | Type | Default | Description |
|---|---|---|---|
tooltipText | ReactNode | — | Trigger tooltip. |
triggerElement | ReactNode | — | Custom trigger. |
side | "top" | "right" | "bottom" | "left" | "bottom" | Menu side. |
align | "start" | "center" | "end" | "end" | Menu alignment. |
onOpenChange | (open: boolean) => void | — | Open change handler. |