How to use @synerise/ds-card-tabs - 1 common examples

To help you get started, we’ve selected a few @synerise/ds-card-tabs 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 Synerise / synerise-design / packages / portal / stories / components / CardTabs / index.stories.tsx View on Github external
})(({store}) => {
    const bg = boolean('White background', true);
    const suffixIcon = boolean('Show suffix icon', false);
    const disabled = boolean('Disabled tabs', false);
    const draggable = boolean('Enable change order of tabs', false);
    const invalid = boolean('Invalid tabs', false);
    const maxTabCount = number('Max number of tabs', 4);
    const prefix = select('Prefix type', {'tag': prefixType.TAG, 'icon': prefixType.ICON}, prefixType.TAG);
    const handleChangeName = (id, name) => {
      store.set({
        items: store.state.items.map(item => {
          return item.id === id ? {
            ...item,
            name: name
          } : item;
        }),
      });
    };

    const handleRemove = (id) => {
      store.set({
        items: store.state.items.filter(item => item.id !== id),
      });
    };

@synerise/ds-card-tabs

CardTabs UI Component for the Synerise Design System

MIT
Latest version published 2 days ago

Package Health Score

66 / 100
Full package analysis

Popular @synerise/ds-card-tabs functions

Similar packages