How to use olymp-slate - 2 common examples

To help you get started, we’ve selected a few olymp-slate 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 olymp / olymp / src / _old / cms / blocks / image / index.js View on Github external
import Image from '../../edits/image';

const actions = props => [
  {
    type: 'image-src',
    icon: 'picture-o',
    tooltip: 'Bild und Bildausschnitt auswählen',
    toggle: () => {
      const { setData } = props;
      setData({ showMedia: true });
    },
    active: false,
  },
];

@useGenericBlock({
  label: 'Bild',
  props: ['image', 'showMedia', 'full'],
  category: 'Media',
  editable: false,
  resize: {
    bootstrap: true,
    coverOnResize: true,
    resizeY: false,
  },
  align: true,
  actions,
})
export default class ImageBlock extends Component {
  static propTypes = {
    children: PropTypes.node,
    style: PropTypes.object,
github olymp / olymp / packages / pages / src / blocks / _old / image / index.js View on Github external
import Image from '../../edits/image';

const actions = props => [
  {
    type: 'image-src',
    icon: 'picture-o',
    tooltip: 'Bild und Bildausschnitt auswählen',
    toggle: () => {
      const { setData } = props;
      setData({ showMedia: true });
    },
    active: false,
  },
];

@useGenericBlock({
  label: 'Bild',
  props: ['image', 'showMedia', 'full'],
  category: 'Media',
  editable: false,
  resize: {
    bootstrap: true,
    coverOnResize: true,
    resizeY: false,
  },
  align: true,
  actions,
})
export default class ImageBlock extends Component {
  static propTypes = {
    children: PropTypes.node,
    style: PropTypes.object,

olymp-slate

MIT
Latest version published 6 years ago

Package Health Score

43 / 100
Full package analysis

Popular olymp-slate functions

Similar packages