mirror of
https://github.com/perfect-panel/ppanel-web.git
synced 2026-02-06 11:40:28 -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,
|
||||
separator = ',',
|
||||
className,
|
||||
options = [
|
||||
'test',
|
||||
'example',
|
||||
'demo',
|
||||
'sample',
|
||||
'react',
|
||||
'javascript',
|
||||
'typescript',
|
||||
'nodejs',
|
||||
'vue',
|
||||
'angular',
|
||||
'svelte',
|
||||
],
|
||||
options = [],
|
||||
}: TagInputProps) {
|
||||
const [inputValue, setInputValue] = useState('');
|
||||
const [tags, setTags] = useState<string[]>(value);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user