-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Toolbar API & New Styling #196
Conversation
flatList: { | ||
flex: 1, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { ToolbarItemComp } from './ToolbarItemComp'; | ||
|
||
interface WebToolbarProps { | ||
editor: EditorBridge; | ||
args: Parameters<ToolbarItem['onPress']>[0]; | ||
items: ToolbarItem[]; | ||
hidden?: boolean; | ||
sections?: Record<string, ToolbarSection>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Support context here?
contexts?: Record<ToolbarContext, ToolbarContextConfig>; | ||
sections?: Record<string, ToolbarSection>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need both contexts and sections? What happens if we have both?
Same with the active ![Screenshot 2024-09-10 at 17 25 02](https://github.com/user-attachments/assets/6d5ea402-294c-438c-8c54- |
in this PR a new toolbar API modified.
New icons with separators:
new.icons.mov
Dark mode with custom context and sticky keyboard:
Screen.Recording.2024-09-09.at.18.16.03.mov