Class: ContextDev::Models::WebExtractStyleguideResponse::Styleguide::Components

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/context_dev/models/web_extract_styleguide_response.rb

Overview

See Also:

Defined Under Namespace

Classes: Button, Card

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(background_color:, border_color:, border_radius:, border_style:, border_width:, box_shadow:, color:, css:, font_size:, font_weight:, min_height:, min_width:, padding:, text_decoration:, font_fallbacks: nil, font_family: nil, text_decoration_color: nil) ⇒ Object

Some parameter documentations has been truncated, see ContextDev::Models::WebExtractStyleguideResponse::Styleguide::Components::Button::Secondary for more details.

Parameters:

  • background_color (String)
  • border_color (String)

    Border color as CSS hex (#RRGGBB or #RRGGBBAA when computed border-color has alp

  • border_radius (String)
  • border_style (String)
  • border_width (String)
  • box_shadow (String)

    Computed box-shadow (comma-separated layers when present)

  • color (String)
  • css (String)

    Ready-to-use CSS declaration block for this component style

  • font_size (String)
  • font_weight (Float)
  • min_height (String)

    Sampled minimum height of the button box (typically px)

  • min_width (String)

    Sampled minimum width of the button box (typically px)

  • padding (String)
  • text_decoration (String)
  • font_fallbacks (Array<String>) (defaults to: nil)

    Full ordered font list from computed font-family

  • font_family (String) (defaults to: nil)

    Primary button typeface (first in fontFallbacks)

  • text_decoration_color (String) (defaults to: nil)

    Hex color of the underline when it differs from the text color



# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 154

Instance Attribute Details

#buttonContextDev::Models::WebExtractStyleguideResponse::Styleguide::Components::Button

Button component styles



146
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 146

required :button, -> { ContextDev::Models::WebExtractStyleguideResponse::Styleguide::Components::Button }

#cardContextDev::Models::WebExtractStyleguideResponse::Styleguide::Components::Card?

Card component style



152
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 152

optional :card, -> { ContextDev::Models::WebExtractStyleguideResponse::Styleguide::Components::Card }