- 
                Notifications
    You must be signed in to change notification settings 
- Fork 46
Schema: Example Component
        Dan Morse edited this page Jun 30, 2021 
        ·
        5 revisions
      
    module.exports = {
  $schema: 'http://json-schema.org/draft-04/schema#',
  title: 'Example',
  description: 'A brief description of Example goes here.',
  type: 'object',
  required: ['title', 'content'],
  not: {
    anyOf: [
      {
        required: ['fullBleed'],
      },
    ],
  },
  properties: {
    attributes: {
      type: 'object',
      description:
        'A Drupal attributes object. Applies extra HTML attributes to the outer <bolt-example> tag.',
    },
    title: {
      type: 'any',
      description: 'Title of Example.',
    },
    content: {
      type: 'any',
      description: 'The main Example content.',
    },
    spacing: {
      type: 'string',
      description: 'Sets the spacing around the Example.',
      default: 'medium',
      enum: ['small', 'medium', 'large'],
    },
    borderless: {
      type: 'boolean',
      description: 'Hides the default border around Example.',
      default: false,
    },
    full_bleed: {
      type: 'boolean',
      description: 'Example spans full width of viewport.',
      default: false,
    },
    fullBleed: {
      type: 'any',
      title: 'DEPRECATED',
      description: 'This prop is deprecated. Use `full_bleed` instead.',
    },
  },
};- Basic A11y Checklist
- Get started with Bolt locally
- Bolt Specific Standards and Conventions
- How to save SVG graphics and SVG icons
- Upgrade to minor release
- Upgrade to 4.x
- Upgrade to 5.x
- Release Workflow
- VS Code Configuration
- Bolt Doc Writing Guide
- Prefixing Custom Attributes
- Standard Props for Passing Content in Twig
- Building Websites with Bolt in Drupal
- From Design Mockup to Code
- Override with Utility Classes