Text/Text.tsx

bezier-react · packages/bezier-react/src/components/Text/Text.tsx · typescript · Apache-2.0
ui

Module exposing: Text

// Source: https://github.com/channel-io/bezier-react | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
'use client'

import { createElement, forwardRef } from 'react'

import classNames from 'classnames'

import { getMarginStyles, splitByMarginProps } from '~/src/types/props-helpers'
import { colorTokenCssVar } from '~/src/utils/style'
import { isNumber } from '~/src/utils/type'

import { type TextProps } from './Text.types'

import styles from './Text.module.scss'

/**
 * `Text` is a component for representing the typography of a design system.
 * @example
 *
 * ```tsx
 * <Text
 *   typo="15"
 *   color="text-neutral"
 * >
 *   Hello, Channel!
 * </Text>
 * ```
 */
export const Te

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key