mittwald Flow Logo

Components

InlineCode

InlineCode wird verwendet, um Code innerhalb eines Textes anzuzeigen.GitHub
Gib yarn start ein um deine App zu starten.

Playground

Gib yarn start ein um deine App zu starten.
import {
  InlineCode,
  Text,
} from "@mittwald/flow-react-components";

<Text>
  Gib <InlineCode>yarn start</InlineCode> ein um deine App
  zu starten.
</Text>
Gib yarn start ein um deine App zu starten.
import {
  InlineCode,
  Text,
} from "@mittwald/flow-react-components";

<Text color="light">
  Gib <InlineCode color="light">yarn start</InlineCode> ein
  um deine App zu starten.
</Text>
Gib yarn start ein um deine App zu starten.
import {
  InlineCode,
  Text,
} from "@mittwald/flow-react-components";

<Text>
  Gib <InlineCode color="dark">yarn start</InlineCode> ein
  um deine App zu starten.
</Text>

Properties

PropertyTypeDefaultDescription
color"light" | "dark" | "default"-

The color schema of the inline code component.

refRef<HTMLElement>-

Allows getting a ref to the component instance. Once the component unmounts, React will set ref.current to null (or call the ref with null if you passed a callback ref). @see React Docs

keyKey-
defaultCheckedboolean-
defaultValuestring | number | readonly string[]-
suppressContentEditableWarningboolean-
suppressHydrationWarningboolean-
accessKeystring-
autoCapitalize"none" | "off" | (string & {}) | "on" | "sentences" | "words" | "characters"-
autoFocusboolean-
classNamestring-
contentEditableBooleanish | "inherit" | "plaintext-only"-
contextMenustring-
dirstring-
draggableBooleanish-
enterKeyHint"search" | "enter" | "done" | "go" | "next" | "previous" | "send"-
hiddenboolean-
idstring-
langstring-
noncestring-
slotstring-
spellCheckBooleanish-
styleCSSProperties-
tabIndexnumber-
titlestring-
translate"yes" | "no"-
radioGroupstring-
roleAriaRole-
aboutstring-
contentstring-
datatypestring-
inlistany-
prefixstring-
propertystring-
relstring-
resourcestring-
revstring-
typeofstring-
vocabstring-
autoCorrectstring-
autoSavestring-
itemPropstring-
itemScopeboolean-
itemTypestring-
itemIDstring-
itemRefstring-
resultsnumber-
securitystring-
unselectable"off" | "on"-
popover"" | "auto" | "manual"-
popoverTargetAction"hide" | "toggle" | "show"-
popoverTargetstring-
inertboolean-

@see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert

inputMode"none" | "text" | "search" | "url" | "tel" | "email" | "numeric" | "decimal"-

Hints at the type of data that might be entered by the user while editing the element or its contents @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute

isstring-

Specify that a standard HTML element should behave like a defined custom built-in element @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is

childrenReactNode-
dangerouslySetInnerHTML{ __html: string | TrustedHTML; }-

Feedback geben