Class: ContextDev::Models::WebExtractStyleguideResponse::Styleguide::Components::Button::Primary

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

Overview

See Also:

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from ContextDev::Internal::Type::BaseModel

Instance Attribute Details

#background_colorString

Returns:

  • (String)


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

required :background_color, String, api_name: :backgroundColor

#border_colorString

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

Returns:

  • (String)


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

required :border_color, String, api_name: :borderColor

#border_radiusString

Returns:

  • (String)


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

required :border_radius, String, api_name: :borderRadius

#border_styleString

Returns:

  • (String)


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

required :border_style, String, api_name: :borderStyle

#border_widthString

Returns:

  • (String)


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

required :border_width, String, api_name: :borderWidth

#box_shadowString

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

Returns:

  • (String)


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

required :box_shadow, String, api_name: :boxShadow

#colorString

Returns:

  • (String)


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

required :color, String

#cssString

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

Returns:

  • (String)


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

required :css, String

#font_fallbacksArray<String>?

Full ordered font list from computed font-family

Returns:

  • (Array<String>, nil)


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

optional :font_fallbacks, ContextDev::Internal::Type::ArrayOf[String], api_name: :fontFallbacks

#font_familyString?

Primary button typeface (first in fontFallbacks)

Returns:

  • (String, nil)


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

optional :font_family, String, api_name: :fontFamily

#font_sizeString

Returns:

  • (String)


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

required :font_size, String, api_name: :fontSize

#font_weightFloat

Returns:

  • (Float)


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

required :font_weight, Float, api_name: :fontWeight

#min_heightString

Sampled minimum height of the button box (typically px)

Returns:

  • (String)


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

required :min_height, String, api_name: :minHeight

#min_widthString

Sampled minimum width of the button box (typically px)

Returns:

  • (String)


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

required :min_width, String, api_name: :minWidth

#paddingString

Returns:

  • (String)


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

required :padding, String

#text_decorationString

Returns:

  • (String)


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

required :text_decoration, String, api_name: :textDecoration

#text_decoration_colorString?

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

Returns:

  • (String, nil)


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

optional :text_decoration_color, String, api_name: :textDecorationColor