--- - component: BaseButton source: https://github.com/yettoapp/ariadne/ruby/view_components/tree/main/app/components/ariadne/base_button.rb parameters: - name: tag type: Symbol default: "`:button`" description: One of `:a`, `:button`, or `:summary`. - name: type type: Symbol default: "`:button`" description: One of `:button`, `:reset`, or `:submit`. - name: size type: Symbol default: "`:m`" description: One of `:l`, `:m`, `:s`, `:xl`, or `:xs`. - name: classes type: String default: '`""`' description: "[Classes and attributes](/classes-attributes)" - name: attributes type: Hash default: "`{}`" description: "[Classes and attributes](/classes-attributes)" - component: Button source: https://github.com/yettoapp/ariadne/ruby/view_components/tree/main/app/components/ariadne/button_component.rb parameters: - name: tag type: Symbol default: "`:button`" description: One of `:a`, `:button`, or `:summary`. - name: scheme type: Symbol default: "`:default`" description: One of `:danger`, `:default`, `:info`, `:success`, or `:warning`. - name: size type: Symbol default: "`BaseButton::DEFAULT_SIZE`" description: One of `:l`, `:m`, `:s`, `:xl`, or `:xs`. - name: type type: Symbol default: N/A description: One of `:button`, `:reset`, or `:submit`. - name: classes type: String default: '`""`' description: "[Classes and attributes](/classes-attributes)" - name: attributes type: Hash default: "`{}`" description: "[Classes and attributes](/classes-attributes)" - component: ClipboardCopy source: https://github.com/yettoapp/ariadne/ruby/view_components/tree/main/app/components/ariadne/clipboard_copy_component.rb parameters: - name: tag type: Symbol, String default: "`:clipboard-copy`" description: The rendered tag name - name: classes type: String default: '`""`' description: "[Classes and attributes](/classes-attributes)" - name: value type: String default: '`""`' description: Text to copy into the users clipboard when they click the component. - name: aria_label type: String default: '`""`' description: Text for accessibility. Can also be passed in as part of `attributes`, but it must be present. - name: attributes type: Hash default: "`{}`" description: "[Classes and attributes](/classes-attributes)" - component: Counter source: https://github.com/yettoapp/ariadne/ruby/view_components/tree/main/app/components/ariadne/counter_component.rb parameters: - name: tag type: Symbol, String default: "`:span`" description: The rendered tag name - name: classes type: String default: '`""`' description: "[Classes and attributes](/classes-attributes)" - name: count type: Integer, Float::INFINITY, nil default: "`0`" description: 'The number to be displayed (e.x. # of issues, pull requests)' - name: limit type: Integer, nil default: "`9_000`" description: Maximum value to display. Pass `nil` for no limit. (e.x. if `count` == 6,000 and `limit` == 5000, counter will display "5,000+") - name: hide_if_zero type: Boolean default: "`false`" description: If true, a `hidden` attribute is added to the counter if `count` is zero. - name: text type: String default: '`""`' description: Text to display instead of count. - name: round type: Boolean default: "`false`" description: Whether to apply rounding logic to value. - name: attributes type: Hash default: "`{}`" description: "[Classes and attributes](/classes-attributes)" - component: Flash source: https://github.com/yettoapp/ariadne/ruby/view_components/tree/main/app/components/ariadne/flash_component.rb parameters: - name: tag type: Symbol, String default: "`:div`" description: The rendered tag name. - name: dismissible type: Boolean default: "`false`" description: Whether the component can be dismissed with an X button. - name: icon type: Symbol, String default: N/A description: Name of [Heroicon](https://ariadne.style/heroicons/) to use. - name: scheme type: Symbol default: "`:default`" description: One of `:danger`, `:default`, `:info`, `:success`, or `:warning`. - name: classes type: String default: '`""`' description: "[Classes and attributes](/classes-attributes)" - name: attributes type: Hash default: "`{}`" description: "[Classes and attributes](/classes-attributes)" - component: Heading source: https://github.com/yettoapp/ariadne/ruby/view_components/tree/main/app/components/ariadne/heading_component.rb parameters: - name: tag type: String default: "`nil`" description: One of `:h1`, `:h2`, `:h3`, `:h4`, `:h5`, or `:h6`. - name: classes type: String default: '`""`' description: "[Classes and attributes](/classes-attributes)" - name: attributes type: Hash default: "`{}`" description: "[Classes and attributes](/classes-attributes)" - component: Heroicon source: https://github.com/yettoapp/ariadne/ruby/view_components/tree/main/app/components/ariadne/heroicon_component.rb parameters: - name: tag type: Symbol, String default: "`:svg`" description: The rendered tag name - name: classes type: String default: '`""`' description: "[Classes and attributes](/classes-attributes)" - name: icon type: Symbol, String default: N/A description: Name of [Heroicon](https://ariadne.style/heroicons/) to use. - name: variant type: String default: N/A description: One of `outline` and `solid`. - name: size type: Symbol default: "`:small`" description: One of `:small` (`16`) and `:medium` (`24`). - name: attributes type: Hash default: "`{}`" description: "[Classes and attributes](/classes-attributes)" - component: Image source: https://github.com/yettoapp/ariadne/ruby/view_components/tree/main/app/components/ariadne/image_component.rb parameters: - name: tag type: Symbol, String default: "`:img`" description: The rendered tag name - name: classes type: String default: '`""`' description: "[Classes and attributes](/classes-attributes)" - name: src type: String default: N/A description: The source url of the image. - name: alt type: String default: N/A description: Specifies an alternate text for the image. - name: lazy type: Boolean default: "`false`" description: Whether or not to lazily load the image. - name: attributes type: Hash default: "`{}`" description: "[Classes and attributes](/classes-attributes)" - component: Text source: https://github.com/yettoapp/ariadne/ruby/view_components/tree/main/app/components/ariadne/text.rb parameters: - name: tag type: Symbol, String default: "`:span`" description: The rendered tag name - name: classes type: String default: '`""`' description: "[Classes and attributes](/classes-attributes)" - name: attributes type: Hash default: "`{}`" description: "[Classes and attributes](/classes-attributes)" - component: Tooltip source: https://github.com/yettoapp/ariadne/ruby/view_components/tree/main/app/components/ariadne/tooltip_component.rb parameters: - name: tag type: Symbol, String default: '`:"tool-tip"`' description: The rendered tag name - name: type type: Symbol default: "`:description`" description: One of `:description` and `:label`. - name: text type: String default: N/A description: The text content of the tooltip. This should be brief and no longer than a sentence. - name: direction type: Symbol default: "`:s`" description: One of `:e`, `:n`, `:ne`, `:nw`, `:s`, `:se`, `:sw`, or `:w`. - name: classes type: String default: '`""`' description: "[Classes and attributes](/classes-attributes)" - name: attributes type: Hash default: "`{}`" description: "[Classes and attributes](/classes-attributes)"