Norsk Tipping Design System

ListItemBlank

Install

yarn add @ntds/list

Import

import { ListItemBlank } from '@ntds/list';

Props

PropTypeDefaultDescription
render?(props) => ReactNodeHook into the top render method of the wrapping element
children?ReactNodeChildren content Children content (optional when using `render`; forwarded into the render callback).
id?stringStandard HTML-element id
title?stringStandard HTML-title attribute
type?"button" | "submit" | "reset"Default behavior of the standard HTML-button. Note: Will be omitted when using the `render-prop`.
disabled?booleanDisables the button both visually and interactively
tabIndex?0 | -1Standard HTML-tabIndex `-1` = not focusable `0` = focusable, natural order
elementRef?Ref<HTMLButtonElement>Get the DOM-reference from the button-element
onClick?MouseEventHandler<HTMLElement>Standard click event Optional click handler. For the BlankButton variant this is already part of BlankButtonProps. For the custom render variant, we forward it inside the render callback.
hoverAffordance?"md" | "lg" | "xl"Whether or not to show hover-effect. Has no effect when flat is set to true.
twFocusKeyboard?stringOverride the standard keyboard focus style of the blank button Default: focus-keyboard:ring-6 focus-keyboard:ring-blue-400
showPointerOnHover?booleanWhether to show a pointer cursor on hover. Defaults to false. If a button is being rendered, it will always show a pointer cursor on hover regardless of this prop, as long the button is not receiving a custom className.
className?stringOptional custom className

On this page