SDAIA
SDAIA LogoSDAIA Logo
ComponentsSelect
IntroductionInstallationFAQBrands
ColorsTypographySpacingRadiusGrid layoutsAll Tokens
All Components
AccordionActivityArea ChartAudio PlayerAvatarAvatarGroupCarousel ImageChartChipCode SnippetColumn ChartContext MenuDigital StampDividerDonut ChartDraggable ListDropdownEmpty StateFiltrationFooterImage ViewerLine ChartListMedia GalleryMenuMetricNav BarNav HeaderNumberPDF ViewerPie ChartPopoverProgress CircleQuoteRadial StepperScatterSecond Nav HeaderSlideout MenuStructured ListTableTable of ContentTree ViewVertical TabsVideo Player
BreadcrumbButtonButton MenuButton SplitContent SwitcherDate PickerFloating ButtonHorizontal TabsLinkModalPaginationRadio ButtonSwitchTag
AutocompleteCheckboxFile UploadNumber InputRange SliderRich Text EditorSelectSignatureSliderText AreaText Input
AlertsBadgeCardFeedbackFeedback OverviewHelp IconLoading IndicatorNotification BannerNotification PopupNotificationsProgress BarRatingRating OverviewSkeletonSkeleton/AvatarsTooltip
Sdaia Logo Animation
Sdaia Touch ButtonsSdaia Touch Switch

Select

Select component

Loading preview…
1'use client';
2
3import { useState } from 'react';
4import { Select, Button } from 'sdaia-ui';
5

Installation

npx sdaia-ui@latest add select

Usage

import { Select } from '@/components/ui/select';
<Select size="large" placholder="Select user" onChange={(v) => setV1(v as string)}/>

Examples

Default

Standard select input in the default placeholder state.

Loading preview…
1<Select
2 label="User"
3 required
4 placeholder="Select user"
5 options={OPTIONS}

With Icon

Select with a leading icon inside the input field.

Loading preview…
1<Select
2 label="User"
3 required
4 placeholder="Select user"
5 leading="icon"

With Dot

Select with a colour dot indicator as the leading item.

Loading preview…
1<Select
2 label="Status"
3 required
4 placeholder="Select status"
5 leading="dot"

Sizes

Select input available in Large and Medium sizes.

Loading preview…
1<div className="flex flex-col gap-4 w-[350px]">
2 <Select size="large" label="Large" placeholder="Select user" options={OPTIONS} value={v1} onChange={(v) => setV1(v as string)} helperText="Size: Large" />
3 <Select size="medium" label="Medium" placeholder="Select user" options={OPTIONS} value={v2} onChange={(v) => setV2(v as string)} helperText="Size: Medium" />
4</div>

Disabled

Select in the disabled state, preventing user interaction.

Loading preview…
1<Select
2 label="User"
3 required
4 placeholder="Select user"
5 options={OPTIONS}

API Reference

SelectProps

Props for the Select component.

Prop

Type

Default

Required

leadingItem

"none" | "icon" | "dot" | "checkbox" | "avatar"

"none"

optional

leadingIcon

ReactNode

—

optional

avatarSrc

string

"/svgs/SaudiAvatar.svg"

optional

size

"large" | "medium"

"large"

optional

options

SelectOption[]

[]

optional

value

string | string[]

—

optional

onChange

(value: string | string[]) => void

—

optional

multiple

boolean

false

optional

placeholder

string

"Select option"

optional

label

string

—

optional

required

boolean

false

optional

helperText

string

—

optional

error

string

—

optional

disabled

boolean

false

optional

leading

"none" | "icon" | "dot" | "checkbox" | "avatar"

"none"

optional
Rich Text Editor
Signature
On this page

Assign Task

Select team members to assign to this task

You can assign multiple team members

Select a role to set access permissions.

Select a role to set access permissions.

Select a role to set access permissions.

Size: Large

Size: Medium

Select a role to set access permissions.

This field cannot be changed