UNPKG

@trimble-oss/moduswebcomponents

Version:

Modus Web Components is a modern, accessible UI library built with Stencil JS that provides reusable web components following Trimble's Modus design system. This updated version focuses on improved flexibility, enhanced theming options, comprehensive cust

67 lines (66 loc) 1.71 kB
import { html } from "lit"; import { ifDefined } from "lit/directives/if-defined.js"; const meta = { title: 'Components/Divider', component: 'modus-wc-divider', args: { color: 'tertiary', content: '', 'custom-class': '', orientation: 'vertical', position: 'center', responsive: true, }, argTypes: { color: { control: { type: 'select' }, options: [ 'primary', 'secondary', 'tertiary', 'high-contrast', 'success', 'warning', 'danger', ], }, content: { control: 'text', }, 'custom-class': { control: 'text', }, orientation: { control: { type: 'select' }, options: ['horizontal', 'vertical'], }, position: { control: { type: 'select' }, options: ['start', 'center', 'end'], }, responsive: { control: { type: 'boolean' }, }, }, parameters: { layout: 'padded', }, }; export default meta; const Template = { render: (args) => html ` <modus-wc-divider aria-label="Divider" color="${args.color}" content="${args.content}" custom-class="${ifDefined(args['custom-class'])}" orientation="${args.orientation}" position="${args.position}" responsive="${args.responsive}" style="${args.orientation === 'horizontal' ? 'display: flex; height: 100px' : ''}" ></modus-wc-divider> `, }; export const Default = Object.assign({}, Template);