Skip to content
Türkçe
All snippets

WSelect example

Single or multi select with search and remote data.

  • WDiv
  • WText
  • WSelect
preview
example_w_select.dart
WDiv(
  className: "w-full flex flex-col gap-3 p-4",
  children: [
    WText("Your workspace", className: "text-lg text-[#cdd9e5] font-semibold"),
    WSelect(
      options: [
        SelectOption(value: "Personal", label: "Personal"),
        SelectOption(value: "Design team", label: "Design team"),
        SelectOption(value: "Engineering", label: "Engineering"),
      ],
      value: "Personal",
      className: "w-full h-12 px-3 bg-[#22272e] border border-[#444c56] text-[#cdd9e5] text-lg rounded-xl",
    ),
  ],
)