Skip to content

Instantly share code, notes, and snippets.

@gustav1105
Last active February 16, 2020 11:13
Show Gist options
  • Save gustav1105/74346ee012e503af68df3268440e5dd4 to your computer and use it in GitHub Desktop.
Save gustav1105/74346ee012e503af68df3268440e5dd4 to your computer and use it in GitHub Desktop.
toggle-button-group
<Box mb={2}>
<ToggleButtonGroup
exclusive
onChange={handleToggleButtonGroup}
value={toggleButtonGroupValue}
>
<ToggleButton value="header-one">
<Title />
</ToggleButton>
<ToggleButton value="insert-image">
<AddAPhoto />
</ToggleButton>
<ToggleButton
value="insert-link"
disabled={editorState.getSelection().isCollapsed()}
>
<Link />
</ToggleButton>
</ToggleButtonGroup>
</Box>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment