react-awesome-tabs
react-awesome-tabs copied to clipboard
Rename tabs?
This looks like an awesome component, great job. The one feature that I would love to have is the ability to rename tabs. I like the way google docs did it - you can either double click on the tab or click the little arrow and select 'rename.'
and
I am new to react - so I was wondering, is there a way to implement this without modifying your code?
That's a cool idea! Maybe I can make it more flexible - like you can define your own operations for this tab.
I think it's possible using icon props inside Tab component like this:
<Tab icon={<EditableTitle />}/>
Your component passed to icon props need to support inline editing.
Awesome tabs component @gao-sun, thanks for your work!