dk-logo
This is a web component to display a DigiKey logo on the page (same logo as used in the standard DigiKey header). Default display size of 200px x 56px which can be overriden by a height and width property passing the desired dimensions. The logo is set as a background image and will be contained to the max height/width combo of either default or custom values. Learn more about DigiKey logo standards.
Properties
Use properties and attributes to control the web component as well as pass required data to it. Some properties won't have an attribute name, this is because to use that property you can't use it as an html attribute it must be set using javascript as a property of the element.
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
alttext | alttext | string | null | |
height | height | string | null | |
width | width | string | null |
Default
<dk-logo
height="150px"
width="400px"
alttext="Logo Alt/Title Text"></dk-logo>