BetaBeta pública — Consulta las notas de lanzamiento
Documentación

Tokenizer

Tag/token input for managing multiple values with keyboard support.

Paquete
@solidiom/tokenizer
Versión
0.6.0
Estado
experimental

Generado a partir del código fuente público del paquete.

API

Inputcomponente

                        Input(props: TokenizerInputProps): Element
                      

Propiedades

class?
string
onBlur?
EventHandler<HTMLInputElement, FocusEvent>
onFocus?
EventHandler<HTMLInputElement, FocusEvent>
onInput?
EventHandler<HTMLInputElement, InputEvent>
onKeyDown?
EventHandler<HTMLInputElement, KeyboardEvent>
ref?
(el: HTMLInputElement) => void
style?
string | CSSProperties

Ver código fuente

Rootcomponente

                        Root(props: TokenizerRootProps): Element
                      

Propiedades

allowDuplicates?
boolean — Whether duplicate tokens are allowed. Default: false.
class?
string
defaultValue?
string[] — Default token values (uncontrolled).
delimiter?
string | string[] — Characters/keys that trigger token creation. Default: ['Enter', ','].
disabled?
boolean
id?
string — Element id.
invalid?
boolean
max?
number — Maximum number of tokens allowed.
name?
string — Form field name.
onTokenAdd?
(token: string) => void — Called when a single token is added.
onTokenRemove?
(token: string, index: number) => void — Called when a single token is removed.
onValueChange?
(tokens: string[]) => void — Called when the token list changes.
placeholder?
string — Placeholder for the input.
readOnly?
boolean
required?
boolean
style?
string | CSSProperties
value?
string[] — Controlled list of token values.

hijos: Element

Ver código fuente

Tokencomponente

                        Token(props: TokenizerTokenProps): Element
                      

Propiedades

class?
string
disabled?
boolean
index
number — Index of the token in the list.
style?
string | CSSProperties
value
string — The token value this chip represents.

hijos: Element

Ver código fuente

TokenizerInputPropsinterfaz

Propiedades

class?
string
onBlur?
EventHandler<HTMLInputElement, FocusEvent>
onFocus?
EventHandler<HTMLInputElement, FocusEvent>
onInput?
EventHandler<HTMLInputElement, InputEvent>
onKeyDown?
EventHandler<HTMLInputElement, KeyboardEvent>
ref?
(el: HTMLInputElement) => void
style?
string | CSSProperties

Ver código fuente

TokenizerReasontipo

Ver código fuente

TokenizerRootPropsinterfaz

Propiedades

allowDuplicates?
boolean — Whether duplicate tokens are allowed. Default: false.
class?
string
defaultValue?
string[] — Default token values (uncontrolled).
delimiter?
string | string[] — Characters/keys that trigger token creation. Default: ['Enter', ','].
disabled?
boolean
id?
string — Element id.
invalid?
boolean
max?
number — Maximum number of tokens allowed.
name?
string — Form field name.
onTokenAdd?
(token: string) => void — Called when a single token is added.
onTokenRemove?
(token: string, index: number) => void — Called when a single token is removed.
onValueChange?
(tokens: string[]) => void — Called when the token list changes.
placeholder?
string — Placeholder for the input.
readOnly?
boolean
required?
boolean
style?
string | CSSProperties
value?
string[] — Controlled list of token values.

hijos: Element

Ver código fuente

TokenizerTokenPropsinterfaz

Propiedades

class?
string
disabled?
boolean
index
number — Index of the token in the list.
style?
string | CSSProperties
value
string — The token value this chip represents.

hijos: Element

Ver código fuente

TokenizerTokenRemovePropsinterfaz

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente

TokenRemovecomponente

                        TokenRemove(props: TokenizerTokenRemoveProps): Element
                      

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente