chore(react/ribbon): add note types

This commit is contained in:
Elian Doran
2025-08-21 20:30:12 +03:00
parent e2e9721d5f
commit cabeb13adb
5 changed files with 44 additions and 26 deletions

View File

@@ -75,12 +75,13 @@ interface FormListItemOpts {
title?: string;
active?: boolean;
badges?: FormListBadge[];
disabled?: boolean;
}
export function FormListItem({ children, icon, value, title, active, badges }: FormListItemOpts) {
export function FormListItem({ children, icon, value, title, active, badges, disabled }: FormListItemOpts) {
return (
<a
class={`dropdown-item ${active ? "active" : ""}`}
class={`dropdown-item ${active ? "active" : ""} ${disabled ? "disabled" : ""}`}
data-value={value} title={title}
tabIndex={0}
>
@@ -104,3 +105,7 @@ export function FormListHeader({ text }: FormListHeaderOpts) {
</li>
)
}
export function FormDivider() {
return <div className="dropdown-divider" />;
}