Quick Example

FormSelect Usage

ตัวอย่าง import และการใช้งานแบบสั้นสำหรับหน้า `form-select`

Code

                <script lang="ts">
 import { FormSelect } from 'sv5ui-plus';

 let status = $state('draft');
</script>

<FormSelect
 name="status"
 bind:value={status}
 items={[
  { value: 'draft', label: 'Draft' },
  { value: 'published', label: 'Published' }
 ]}
/>
            

FormSelect

Select wrapper that syncs the current value into hidden inputs so native / SvelteKit form posts work.

Usage