You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<SInputSegments> is a select switch or tab panel that works as radio button. In GitHub Primer, this is called Segmented control.
Props
It's input component so it should inherit basic input props. Would it be possible to use component generics for value? It should be the same type as Option.value 👀
import{typeValidatable}from'sefirot/composables/Validation'interfaceProps{// Base props to be passed down to `<SInputBase>`.size?: Sizelabel?: stringinfo?: stringnote?: stringhelp?: stringhideError?: booleanvalidation?: Validatableoptions: Option[]disabled?: boolean// Default: false// The selected file. Same as other input,// `modelValue` takes precedence over `value`.value?: string|number|booleanmodelValue?: string|number|boolean}typeSize='mini'|'small'|'medium'interfaceOption{label: string// Default: 'default'mode?: 'default'|'info'|'warning'|'success'|'danger'value: string|number|boolean}
SInputTab gives me tab vibes and these are not tabs per-se nor do they function alike. Segmented controls are unique in their UI/UX usage, so when you read the word “segment” you can disambiguate it from all other forms of input controls given it is consistent with established patterns. For the sake of simplicity, perhaps SInputSegments is a reasonable compromise?
<SInputSegments>
is a select switch or tab panel that works as radio button. In GitHub Primer, this is called Segmented control.Props
It's input component so it should inherit basic input props. Would it be possible to use component generics for
value
? It should be the same type asOption.value
👀Events
Slots
#info
:info
. When info prop and this slot are defined at the same time, this slot will take precedence.The text was updated successfully, but these errors were encountered: