{"kind":"javascript-module","path":"src/components/fhi-button/fhi-button.component.ts","declarations":[{"kind":"class","description":"## FHI Button\n\nhttps://designsystem.fhi.no/?path=/docs/komponenter-button--docs\n\nThe `<fhi-button>` component is used to create interactive buttons in accordance with the FHI Design System guidelines.\nUse this component instead of the standard HTML `<button>` element to ensure consistent styling and behavior across your application.","name":"FhiButton","slots":[{"description":"The content of the button. This should be pure text, an icon or both.","name":""}],"members":[{"kind":"method","name":"_dispatchClickEvent","privacy":"private","return":{"type":{"text":"void"}}},{"kind":"method","name":"_getIconSize","privacy":"private","return":{"type":{"text":"string"}}},{"kind":"method","name":"_handleClick","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"event","optional":true,"type":{"text":"MouseEvent | KeyboardEvent"}}]},{"kind":"method","name":"_handleKeydown","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"event","type":{"text":"KeyboardEvent"}}]},{"kind":"method","name":"_handleKeyup","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"event","type":{"text":"KeyboardEvent"}}]},{"kind":"method","name":"_handleSelectStart","privacy":"private","return":{"type":{"text":"boolean"}}},{"kind":"method","name":"_handleSlotChange","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"event","type":{"text":"Event"}}]},{"kind":"field","name":"_internals","type":{"text":"ElementInternals"},"privacy":"private"},{"kind":"method","name":"click","privacy":"public","return":{"type":{"text":"void"}},"description":"Programmatically clicks the button."},{"kind":"field","name":"color","type":{"text":"'accent' | 'neutral' | 'danger'"},"default":"'accent'","description":"Sets the color of the button.\n\nSee: https://designsystem.fhi.no/?path=/docs/komponenter-button--docs#color-farge","reflects":true,"attribute":"color"},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Disables the button. This changes its appearance and makes it non-interactive.","reflects":true,"attribute":"disabled"},{"kind":"field","name":"formAssociated","type":{"text":"boolean"},"static":true,"readonly":true,"default":"true"},{"kind":"field","name":"size","type":{"text":"'large' | 'medium' | 'small'"},"default":"'medium'","description":"Sets the size of the button to one of the predefined options.\n\nSee: https://designsystem.fhi.no/?path=/docs/komponenter-button--docs#size-st%C3%B8rrelse","reflects":true,"attribute":"size"},{"kind":"field","name":"type","type":{"text":"'button' | 'submit' | 'reset'"},"default":"'submit'","description":"Sets the button's type. This determines the button's behavior when used within a form.\nThe predefined types conform to standard HTML button types.\n\nFor more information about button types, see: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type","attribute":"type"},{"kind":"field","name":"variant","type":{"text":"'strong' | 'subtle' | 'outlined' | 'text'"},"default":"'strong'","description":"Sets the button variant. The variant determines the button's visual style and emphasis.\n\nSee: https://designsystem.fhi.no/?path=/docs/komponenter-button--docs#variant","reflects":true,"attribute":"variant"},{"kind":"field","name":"iconOnly","type":{"text":"boolean"},"default":"false","description":"Styles the button for icon-only content.\n\nIf you only have an icon as the child of the button, then you should set this property to `true`.","deprecated":"This property is deprecated and will be removed in a future release. The button will automatically detect if it only contains an icon and apply the appropriate styling.","attribute":"icon-only"}],"events":[{"name":"click","type":{"text":"Event"},"description":"Standard DOM event with the type `click`.\nThis event is dispatched when the button is clicked, either via mouse or keyboard interaction."}],"attributes":[{"name":"color","type":{"text":"'accent' | 'neutral' | 'danger'"},"default":"'accent'","description":"Sets the color of the button.\n\nSee: https://designsystem.fhi.no/?path=/docs/komponenter-button--docs#color-farge","fieldName":"color"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Disables the button. This changes its appearance and makes it non-interactive.","fieldName":"disabled"},{"name":"size","type":{"text":"'large' | 'medium' | 'small'"},"default":"'medium'","description":"Sets the size of the button to one of the predefined options.\n\nSee: https://designsystem.fhi.no/?path=/docs/komponenter-button--docs#size-st%C3%B8rrelse","fieldName":"size"},{"name":"type","type":{"text":"'button' | 'submit' | 'reset'"},"default":"'submit'","description":"Sets the button's type. This determines the button's behavior when used within a form.\nThe predefined types conform to standard HTML button types.\n\nFor more information about button types, see: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type","fieldName":"type"},{"name":"variant","type":{"text":"'strong' | 'subtle' | 'outlined' | 'text'"},"default":"'strong'","description":"Sets the button variant. The variant determines the button's visual style and emphasis.\n\nSee: https://designsystem.fhi.no/?path=/docs/komponenter-button--docs#variant","fieldName":"variant"},{"name":"icon-only","type":{"text":"boolean"},"default":"false","description":"Styles the button for icon-only content.\n\nIf you only have an icon as the child of the button, then you should set this property to `true`.","deprecated":"This property is deprecated and will be removed in a future release. The button will automatically detect if it only contains an icon and apply the appropriate styling.","fieldName":"iconOnly"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"fhi-button","customElement":true},{"kind":"variable","name":"FhiButtonSelector","type":{"text":"string"},"default":"'fhi-button'"}]}