flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
30
VISUALIZACION/node_modules/polished/lib/shorthands/borderStyle.js.flow
generated
vendored
Executable file
30
VISUALIZACION/node_modules/polished/lib/shorthands/borderStyle.js.flow
generated
vendored
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
// @flow
|
||||
import directionalProperty from '../helpers/directionalProperty'
|
||||
|
||||
import type { Styles } from '../types/style'
|
||||
|
||||
/**
|
||||
* Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.
|
||||
* @example
|
||||
* // Styles as object usage
|
||||
* const styles = {
|
||||
* ...borderStyle('solid', 'dashed', 'dotted', 'double')
|
||||
* }
|
||||
*
|
||||
* // styled-components usage
|
||||
* const div = styled.div`
|
||||
* ${borderStyle('solid', 'dashed', 'dotted', 'double')}
|
||||
* `
|
||||
*
|
||||
* // CSS as JS Output
|
||||
*
|
||||
* div {
|
||||
* 'borderTopStyle': 'solid',
|
||||
* 'borderRightStyle': 'dashed',
|
||||
* 'borderBottomStyle': 'dotted',
|
||||
* 'borderLeftStyle': 'double'
|
||||
* }
|
||||
*/
|
||||
export default function borderStyle(...values: Array<?string>): Styles {
|
||||
return directionalProperty('borderStyle', ...values)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue