mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
desktop: Extend shared form components
`Checkbox` reports changes, `SegmentedSwitch` options can show an icon and a label together, `TextInput` takes a `maxlength`, and a new `Select` is a styled dropdown that also works inside a popover, where a nested `Popover` would close its parent. Co-authored-by: Brandon Oxendine <brandon.oxendine@gmail.com>
This commit is contained in:
co-authored by
Brandon Oxendine
parent
c13c7fa5d9
commit
e29def0dda
@@ -12,6 +12,7 @@
|
||||
disabled?: boolean;
|
||||
keyShortcuts?: string;
|
||||
left?: Snippet;
|
||||
maxlength?: number;
|
||||
// Lets shortcuts with Mod through while focused, for fields like filters
|
||||
// that hold nothing worth protecting.
|
||||
modShortcuts?: boolean;
|
||||
@@ -37,6 +38,7 @@
|
||||
disabled = false,
|
||||
keyShortcuts,
|
||||
left,
|
||||
maxlength,
|
||||
modShortcuts = false,
|
||||
name,
|
||||
onDismiss,
|
||||
@@ -157,6 +159,7 @@
|
||||
{type}
|
||||
{name}
|
||||
{placeholder}
|
||||
{maxlength}
|
||||
{disabled}
|
||||
bind:value
|
||||
autocomplete="off"
|
||||
|
||||
Reference in New Issue
Block a user