mirror of
https://github.com/perfect-panel/ppanel-web.git
synced 2026-02-10 18:31:10 -05:00
♻️ refactor: Remove default options from TagInput component for improved flexibility
This commit is contained in:
parent
b6e778d482
commit
6a3bb7016e
@ -19,19 +19,7 @@ export function TagInput({
|
|||||||
placeholder,
|
placeholder,
|
||||||
separator = ',',
|
separator = ',',
|
||||||
className,
|
className,
|
||||||
options = [
|
options = [],
|
||||||
'test',
|
|
||||||
'example',
|
|
||||||
'demo',
|
|
||||||
'sample',
|
|
||||||
'react',
|
|
||||||
'javascript',
|
|
||||||
'typescript',
|
|
||||||
'nodejs',
|
|
||||||
'vue',
|
|
||||||
'angular',
|
|
||||||
'svelte',
|
|
||||||
],
|
|
||||||
}: TagInputProps) {
|
}: TagInputProps) {
|
||||||
const [inputValue, setInputValue] = useState('');
|
const [inputValue, setInputValue] = useState('');
|
||||||
const [tags, setTags] = useState<string[]>(value);
|
const [tags, setTags] = useState<string[]>(value);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user