How to use the carbon-components.settings.prefix function in carbon-components

To help you get started, we’ve selected a few carbon-components examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github carbon-design-system / carbon-website-archive / packages / addons-website / src / components / Grid / Grid.js View on Github external
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';

import { settings } from 'carbon-components';
const prefix = settings.prefix;

export const Grid = ({ children, className }) => {
  return (
    <div>{children}</div>
  );
};

Grid.propTypes = {
  children: PropTypes.node,

  /**
   * Specify a class name for row
   */
  className: PropTypes.string,
};
github carbon-design-system / carbon-website-archive / packages / addons-website / src / components / TypeTester / TypeTester.js View on Github external
import React, { Component } from 'react';
import classnames from 'classnames';
import Dropdown from 'carbon-components-react/es/components/Dropdown';
import Textarea from 'react-textarea-autosize';
import InputRange from '@carbon/addons-website/src/components/InputRange';

import { settings } from 'carbon-components';
const prefix = settings.prefix;

const HEBREW = 'hebrew';
const ARABIC = 'arabic';

const languageSample = [
  {
    language: 'latin',
    content: 'Heavy boxes perform quick waltzes and jigs.',
  },
  {
    language: 'cyrillic',
    content: 'Эх, чужак, общий съём цен шляп (юфть)—вдрызг!',
  },
  {
    language: 'greek',
    content: 'διαφυλάξτε γενικά τη ζωή σας από βαθειά ψυχικά τραύματα.',