How to use the grommet-controls/components/Tags/doc function in grommet-controls

To help you get started, we’ve selected a few grommet-controls 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 atanasster / grommet-nextjs / pages / add-ons / tags.js View on Github external
import React from 'react';
import { Tags } from 'grommet-controls';
import doc from 'grommet-controls/components/Tags/doc';
import Doc from '../../components/Doc';

const desc = doc(Tags).toJSON();

export default () => (
  
);
github atanasster / grommet-nextjs / pages / tags.js View on Github external
import { Tags } from 'grommet-controls';
import doc from 'grommet-controls/components/Tags/doc';

import Doc from '../components/Doc';

const desc = doc(Tags).toJSON();

const stringOptions = ['small', 'medium', 'large', 'xlarge', 'huge'];

export default class TagsDoc extends React.Component {
  state = { selected: [stringOptions[0]] }

  render() {
    const { selected } = this.state;
    return (