MCPcopy Create free account
hub / github.com/PatoSala/react-native-blocks / Props

Interface Props

packages/blocks/src/TextBlock.tsx:23–25  ·  view source on GitHub ↗

* It could be a good idea to create a way to define a block's strucuture (like an interface) and * use that structure to register the block. * * @example * const textBlock = { * {text block properties here} * } * * Then this structure could be used at the moment of registering the bloc

Source from the content-addressed store, hash-verified

21 */
22
23interface Props {
24 blockId: string
25}
26
27export function TextBlock({ blockId } : Props) {
28 const { getTextInputProps, getValue, getSelection } = useTextInput(blockId);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected