MCPcopy Create free account
hub / github.com/editablejs/editable / sizeCls

Function sizeCls

packages/ui/src/select.tsx:38–42  ·  view source on GitHub ↗
(size: SelectSize = 'default')

Source from the content-addressed store, hash-verified

36export type SelectItem = SelectItemProps | 'separator'
37
38const sizeCls = (size: SelectSize = 'default') => [
39 tw`py-2`,
40 size === 'small' && tw`py-1 pr-2 pl-5`,
41 size === 'large' && tw`py-3 pr-5 pl-12`,
42]
43
44const StyledInput = styled.input<{ size: SelectSize }>(({ size }) => [
45 tw`px-1.5 bg-transparent text-base outline-0 absolute top-0 bottom-0 w-full`,

Callers 1

renderItemsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…