UNPKG

@wix/design-system

Version:

@wix/design-system

44 lines (40 loc) 1.36 kB
### title - type: ReactNode - description: Title text or element. `React.ReactElement` values are not affected by `as`, `id`, `aria-describedby`, and `size` props or default text styling. ### suffix - type: ReactNode - description: Suffix content. ### dataHook - type: string - description: Applies a data-hook HTML attribute that can be used in the tests ### skin - type: "standard" | "light" | "neutral" - description: Skin variant. ### as - type: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "span" - description: Renders component as any other component or a given HTML tag. ### id - type: string - description: Title text element id. ### aria-describedby - type: string - description: Title text element label reference id. ### size - type: "small" | "medium" - description: Title size. ### align - type: "center" | "start" - description: Title alignment. ### divider - type: "none" | "top" | "bottom" | "default" - description: Divider type. ### horizontalPadding - type: "xxTiny" | "xTiny" | "tiny" | "small" | "medium" | "large" - description: Horizontal padding. ### ref - type: null | string | (instance: HTMLDivElement | null) => void | RefObject<HTMLDivElement> - description: 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).