UI components (SvGrid Editors)

SvGrid ships a suite of Svelte 5 UI components in the free @svgrid/grid package. Every one is two things at once:

  1. a standalone control you can drop into any app that already uses SvGrid, and
  2. a grid cell editor - the same component SvGrid mounts when you edit a cell.

They are deliberately not a separate "component suite" product: the grid stays the hero, and these are its editors, usable on their own. Try them live under the SvGrid Editors switcher in the examples gallery.

Design principles

The catalogue

Group Components
Date & time SvCalendar, SvTimePicker, SvDateTimePicker
Buttons & toggles SvButton, SvRepeatButton, SvToggleButton, SvSwitchButton, SvCheckBox, SvRadioGroup, SvRating
Inputs SvNumberInput, SvPasswordInput, SvMaskedInput, SvPhoneInput, SvColorInput
Selection SvListBox, SvDropDownList, SvComboBox, SvAutoComplete, SvTagsInput, SvCountryInput
Range & feedback SvSlider, SvGauge
Layout & composite SvTabs, SvTree, SvForm

As grid cell editors

The date/time controls are the rich-by-default editors for date, datetime and time columns:

<script>
  import { SvGrid } from '@svgrid/grid'
  const columns = [
    { field: 'due', header: 'Due', editorType: 'date' },      // -> SvCalendar popover
    { field: 'at', header: 'At', editorType: 'datetime' },    // -> SvDateTimePicker
    { field: 'start', header: 'Start', editorType: 'time' },  // -> SvTimePicker dial
  ]
</script>

To opt back out to the plain native inputs, use editorType: 'date-native', 'datetime-native' or 'time-native'. Any other control can be wired into a column via the cellEditor snippet.