Getting started
Foundation
Typography
Navigation
Feedback
Forms
Slug input allows user to enter a slug for a resource they're creating, for example a new workspace.
Show a prefix before the input to hint where the slug would be used via prefix
prop.
Input should be disabled, when it shouldn't be allowed to be interacted with.
Compared to a disabled input, read only input is usually used for values that user might want to copy to clipboard.
SlugInput
supports three states of validation via validationState
prop:
"validating"
- Slug is being validated."valid"
- Slug is valid."invalid"
- Slug is invalid.Inherits margin props.
Name | Default | Description |
---|---|---|
isDisabled | — | boolean Determines whether input is disabled and doesn't respond to any user interactions. |
isReadOnly | — | boolean Determines whether input can be interacted with, but value can't be changed. |
isRequired | — | boolean Indicates that input is required to fill out. |
prefix | — | string Prefix to show before the value. |
value | — | string Input value. |
validationState | — | "validating" | "invalid" | "valid" Validation state. |
width | "xs" | "xs" | "sm" | "md" | "lg" | "auto" | "100%" Input width. |